mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Make sure drawings are loaded when calling bim.activate_drawing from sheets UI.
related: c11ba23a3d
This commit is contained in:
@@ -1526,6 +1526,8 @@ class ActivateDrawing(bpy.types.Operator):
|
|||||||
return self.execute(context)
|
return self.execute(context)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
if bpy.context.scene.DocProperties.is_editing_drawings == False:
|
||||||
|
bpy.ops.bim.load_drawings()
|
||||||
drawing = tool.Ifc.get().by_id(self.drawing)
|
drawing = tool.Ifc.get().by_id(self.drawing)
|
||||||
dprops = bpy.context.scene.DocProperties
|
dprops = bpy.context.scene.DocProperties
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user