mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
Fix #2426. bug where unrelated objects would get drawing properties by accident.
This commit is contained in:
@@ -75,7 +75,7 @@ def update_diagram_scale(self, context):
|
||||
if "|" not in scale:
|
||||
return
|
||||
human_scale, scale = scale.split("|")
|
||||
element = tool.Ifc.get_entity(context.active_object)
|
||||
element = tool.Ifc.get_entity(self.id_data)
|
||||
if not element:
|
||||
return
|
||||
pset = ifcopenshell.util.element.get_psets(element).get("EPset_Drawing")
|
||||
|
||||
Reference in New Issue
Block a user