mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 21:38: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:
|
if "|" not in scale:
|
||||||
return
|
return
|
||||||
human_scale, scale = scale.split("|")
|
human_scale, scale = scale.split("|")
|
||||||
element = tool.Ifc.get_entity(context.active_object)
|
element = tool.Ifc.get_entity(self.id_data)
|
||||||
if not element:
|
if not element:
|
||||||
return
|
return
|
||||||
pset = ifcopenshell.util.element.get_psets(element).get("EPset_Drawing")
|
pset = ifcopenshell.util.element.get_psets(element).get("EPset_Drawing")
|
||||||
|
|||||||
Reference in New Issue
Block a user