mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 21:50:01 +00:00
Fix bug when tabbing into empties
This commit is contained in:
@@ -1631,7 +1631,9 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
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:
|
||||||
if (usage := tool.Model.get_usage_type(element)) and usage in ("LAYER1", "LAYER2"):
|
if not obj.data:
|
||||||
|
self.report({"INFO"}, "No geometry to edit")
|
||||||
|
elif (usage := tool.Model.get_usage_type(element)) and usage in ("LAYER1", "LAYER2"):
|
||||||
self.report({"INFO"}, f"Parametric {usage} elements cannot be edited directly")
|
self.report({"INFO"}, f"Parametric {usage} elements cannot be edited directly")
|
||||||
elif tool.Geometry.is_locked(element):
|
elif tool.Geometry.is_locked(element):
|
||||||
self.report({"ERROR"}, f"Element '{obj.name}' is locked and cannot be edited")
|
self.report({"ERROR"}, f"Element '{obj.name}' is locked and cannot be edited")
|
||||||
|
|||||||
Reference in New Issue
Block a user