mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
Improve drawing selections in OpenDrawing operator
This commit is contained in:
@@ -1722,12 +1722,15 @@ class OpenDrawing(bpy.types.Operator):
|
|||||||
return self.execute(context)
|
return self.execute(context)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
self.props = context.scene.DocProperties
|
||||||
if self.open_all:
|
if self.open_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 self.props.drawings
|
||||||
|
if d.is_drawing and d.is_selected
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
drawings = [tool.Ifc.get().by_id(context.scene.DocProperties.drawings.get(self.view).ifc_definition_id)]
|
drawings = [tool.Ifc.get().by_id(self.props.drawings.get(self.view).ifc_definition_id)]
|
||||||
|
|
||||||
drawing_uris = []
|
drawing_uris = []
|
||||||
drawings_not_found = []
|
drawings_not_found = []
|
||||||
|
|||||||
Reference in New Issue
Block a user