mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
See #5941. Don't show mode changes if an object is unselectable.
Unselectable things should be uneditable. That's what the lock/unlock is for.
This commit is contained in:
@@ -118,10 +118,6 @@ class BimTool(WorkSpaceTool):
|
|||||||
EditObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)
|
EditObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)
|
||||||
else:
|
else:
|
||||||
CreateObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)
|
CreateObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)
|
||||||
# Show some UI for spatial elements that are unselectable by default.
|
|
||||||
if active_ifc_object:
|
|
||||||
EditObjectUI.layout = layout # Prevent .draw_modes from using old layout and crash.
|
|
||||||
EditObjectUI.draw_modes(context)
|
|
||||||
|
|
||||||
|
|
||||||
class WallTool(BimTool):
|
class WallTool(BimTool):
|
||||||
|
|||||||
Reference in New Issue
Block a user