mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +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 obj := tool.Ifc.get_object(element):
|
||||||
if self.is_locked:
|
if self.is_locked:
|
||||||
tool.Geometry.lock_object(obj)
|
tool.Geometry.lock_object(obj)
|
||||||
|
obj.hide_select = True
|
||||||
else:
|
else:
|
||||||
tool.Geometry.unlock_object(obj)
|
tool.Geometry.unlock_object(obj)
|
||||||
|
obj.hide_select = False
|
||||||
# Need to update ViewportData.mode.
|
# Need to update ViewportData.mode.
|
||||||
bonsai.bim.handler.refresh_ui_data()
|
bonsai.bim.handler.refresh_ui_data()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user