Minor fix

This commit is contained in:
Dion Moult
2024-09-23 23:55:15 +10:00
parent 0426c8e115
commit 84ceb11584
@@ -2293,6 +2293,8 @@ class ImportRepresentationItems(bpy.types.Operator, tool.Ifc.Operator):
def _execute(self, context):
obj = context.active_object
props = context.scene.BIMGeometryProperties
if previous_obj := props.representation_obj:
previous_obj.hide_set(False)
props.representation_obj = obj
obj.hide_set(True)
tool.Geometry.lock_object(obj)