mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
More descriptive error message on attempt to delete drawings category
This commit is contained in:
@@ -1512,6 +1512,9 @@ class RemoveDrawing(bpy.types.Operator, Operator):
|
|||||||
tool.Ifc.get().by_id(d.ifc_definition_id) for d in context.scene.DocProperties.drawings if d.is_selected
|
tool.Ifc.get().by_id(d.ifc_definition_id) for d in context.scene.DocProperties.drawings if d.is_selected
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
|
if not self.drawing:
|
||||||
|
self.report({"ERROR"}, "No drawing selected")
|
||||||
|
return {"CANCELLED"}
|
||||||
drawings = [tool.Ifc.get().by_id(self.drawing)]
|
drawings = [tool.Ifc.get().by_id(self.drawing)]
|
||||||
|
|
||||||
removed_drawings = [drawing.id() for drawing in drawings]
|
removed_drawings = [drawing.id() for drawing in drawings]
|
||||||
|
|||||||
Reference in New Issue
Block a user