mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix issue editing item layer when it had a layer previously (13a182c)
This commit is contained in:
@@ -209,6 +209,7 @@ def update_is_editing_item_layer(self: "BIMObjectGeometryProperties", context: b
|
||||
item = ifc_file.by_id(active_ui_item.ifc_definition_id)
|
||||
if layer := next(iter(item.LayerAssignment), None):
|
||||
self.representation_item_layer = str(layer.id())
|
||||
return
|
||||
|
||||
if "representation_item_layer" in self:
|
||||
del self["representation_item_layer"]
|
||||
|
||||
Reference in New Issue
Block a user