Fix #3641 : Error when creating roof type

This commit is contained in:
Gorgious56
2023-08-25 15:13:07 +02:00
parent dadcbe61ea
commit 5c73ef0a6d
@@ -445,7 +445,7 @@ class AddType(bpy.types.Operator, tool.Ifc.Operator):
should_add_representation=True,
context=body,
)
tool.Blender.select_and_activate_single_object(obj)
tool.Blender.select_and_activate_single_object(context, obj)
bpy.ops.bim.add_roof()
bpy.ops.bim.load_type_thumbnails(ifc_class=ifc_class)