mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Minor fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user