mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
Suspicious undo stack fix
This commit is contained in:
@@ -225,7 +225,11 @@ class IfcStore:
|
|||||||
try:
|
try:
|
||||||
value.name
|
value.name
|
||||||
except:
|
except:
|
||||||
obj = bpy.data.objects.get(IfcStore.undo_redo_stack_object_names[key])
|
# TODO not so sure about this obj_name check
|
||||||
|
obj_name = IfcStore.undo_redo_stack_object_names.get(key, None)
|
||||||
|
if not obj_name:
|
||||||
|
continue
|
||||||
|
obj = bpy.data.objects.get(obj_name)
|
||||||
if not obj or not obj.BIMObjectProperties.ifc_definition_id:
|
if not obj or not obj.BIMObjectProperties.ifc_definition_id:
|
||||||
continue
|
continue
|
||||||
element = file.by_id(obj.BIMObjectProperties.ifc_definition_id)
|
element = file.by_id(obj.BIMObjectProperties.ifc_definition_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user