From b792673f889e6813aed23fff80e5cb98961dfb42 Mon Sep 17 00:00:00 2001 From: Massimo Fabbro Date: Mon, 13 Nov 2023 21:28:07 +0100 Subject: [PATCH] Minor fix --- src/blenderbim/blenderbim/tool/spatial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/spatial.py b/src/blenderbim/blenderbim/tool/spatial.py index a30dfa77c5..deb07288b6 100644 --- a/src/blenderbim/blenderbim/tool/spatial.py +++ b/src/blenderbim/blenderbim/tool/spatial.py @@ -670,9 +670,9 @@ class Spatial(blenderbim.core.tool.Spatial): relating_type = tool.Ifc.get().by_id(int(relating_type_id)) ifc_class = relating_type.is_a() instance_class = ifcopenshell.util.type.get_applicable_entities(ifc_class, tool.Ifc.get().schema)[0] - bpy.ops.bim.assign_class(obj=obj.name, ifc_class=instance_class) + bpy.ops.bim.assign_class(obj = obj.name, ifc_class = instance_class) element = tool.Ifc.get_entity(obj) - blenderbim.core.type.assign_type(tool.Ifc, tool.Type, element=element, type=relating_type) + tool.Ifc.run("type.assign_type", related_object = element, relating_type = relating_type) @classmethod def assign_relating_type_to_element(cls, ifc, Type, element, relating_type):