mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +00:00
Prevent TAB from editing objects outside the aggregate in aggregate mode.
This commit is contained in:
committed by
Bruno Perdigão
parent
3050abdb87
commit
3dd83598e9
@@ -1895,6 +1895,9 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
if obj == context.scene.BIMGeometryProperties.representation_obj:
|
if obj == context.scene.BIMGeometryProperties.representation_obj:
|
||||||
self.report({"ERROR"}, f"Element '{obj.name}' is in item mode and cannot be edited directly")
|
self.report({"ERROR"}, f"Element '{obj.name}' is in item mode and cannot be edited directly")
|
||||||
|
elif obj in [o.obj for o in context.scene.BIMAggregateProperties.not_editing_objects]:
|
||||||
|
obj.select_set(False)
|
||||||
|
self.report({"ERROR"}, f"Element '{obj.name}' does not belong to this aggregate and cannot be edited directly")
|
||||||
elif obj in bpy.context.scene.BIMProjectProperties.clipping_planes_objs:
|
elif obj in bpy.context.scene.BIMProjectProperties.clipping_planes_objs:
|
||||||
self.report({"ERROR"}, "Clipping planes cannot be edited")
|
self.report({"ERROR"}, "Clipping planes cannot be edited")
|
||||||
elif element:
|
elif element:
|
||||||
|
|||||||
Reference in New Issue
Block a user