mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
fix #5806: When unlocking spatial objects, that it turns on select-ability as well.
This commit is contained in:
@@ -108,8 +108,10 @@ def update_spatial_is_locked(self, context):
|
||||
if obj := tool.Ifc.get_object(element):
|
||||
if self.is_locked:
|
||||
tool.Geometry.lock_object(obj)
|
||||
obj.hide_select = True
|
||||
else:
|
||||
tool.Geometry.unlock_object(obj)
|
||||
obj.hide_select = False
|
||||
# Need to update ViewportData.mode.
|
||||
bonsai.bim.handler.refresh_ui_data()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user