mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Improve drawing selections in RemoveDrawing operator
This commit is contained in:
@@ -2022,7 +2022,9 @@ class RemoveDrawing(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
def _execute(self, context):
|
def _execute(self, context):
|
||||||
if self.remove_all:
|
if self.remove_all:
|
||||||
drawings = [
|
drawings = [
|
||||||
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_drawing and d.is_selected
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
if not self.drawing:
|
if not self.drawing:
|
||||||
|
|||||||
Reference in New Issue
Block a user