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:
Dion Moult
2025-01-09 17:40:52 +11:00
parent 2d5bc49ee0
commit 84931fbbd2
@@ -118,10 +118,6 @@ class BimTool(WorkSpaceTool):
EditObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)
else:
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):