mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Fix bug where selecting element / element type without representation wasn't updating bim tools active type
This commit is contained in:
@@ -113,10 +113,6 @@ def update_bim_tool_props():
|
|||||||
if not element:
|
if not element:
|
||||||
return
|
return
|
||||||
|
|
||||||
representation = ifcopenshell.util.representation.get_representation(element, "Model", "Body", "MODEL_VIEW")
|
|
||||||
if not representation:
|
|
||||||
return
|
|
||||||
|
|
||||||
props = tool.Model.get_model_props()
|
props = tool.Model.get_model_props()
|
||||||
aprops = tool.Drawing.get_annotation_props()
|
aprops = tool.Drawing.get_annotation_props()
|
||||||
TOOLS_TO_CLASSES_MAP = tool.Blender.get_tools_to_classes_map()
|
TOOLS_TO_CLASSES_MAP = tool.Blender.get_tools_to_classes_map()
|
||||||
@@ -140,6 +136,10 @@ def update_bim_tool_props():
|
|||||||
if is_annotation_tool:
|
if is_annotation_tool:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
representation = ifcopenshell.util.representation.get_representation(element, "Model", "Body", "MODEL_VIEW")
|
||||||
|
if not representation:
|
||||||
|
return
|
||||||
|
|
||||||
extrusion = tool.Model.get_extrusion(representation)
|
extrusion = tool.Model.get_extrusion(representation)
|
||||||
if not extrusion:
|
if not extrusion:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user