From cf9f792a3b07e843e8c0d1ee2075cf6197e0a309 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 29 May 2024 12:23:06 +0500 Subject: [PATCH] fix issue unlinking objects after d219856 `unlink_style` doesn't need `tool.Style` anymore and `obj` argument was replaced with `style` --- src/blenderbim/blenderbim/tool/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/tool/root.py b/src/blenderbim/blenderbim/tool/root.py index e83c470bbd..f1f36d6933 100644 --- a/src/blenderbim/blenderbim/tool/root.py +++ b/src/blenderbim/blenderbim/tool/root.py @@ -315,7 +315,7 @@ class Root(blenderbim.core.tool.Root): obj.data.BIMMeshProperties.ifc_definition_id = 0 for material_slot in obj.material_slots: if material_slot.material: - blenderbim.core.style.unlink_style(tool.Ifc, tool.Style, obj=material_slot.material) + blenderbim.core.style.unlink_style(tool.Ifc, style=material_slot.material) blenderbim.core.material.unlink_material(tool.Ifc, obj=material_slot.material) if "Ifc" in obj.name and "/" in obj.name: obj.name = obj.name.split("/", 1)[1]