Make sure drawings are loaded when calling bim.activate_drawing from sheets UI.

related: c11ba23a3d
This commit is contained in:
Ryan Schultz
2024-08-03 14:09:15 -05:00
parent c11ba23a3d
commit 1ca0dfb1e0
@@ -1526,6 +1526,8 @@ class ActivateDrawing(bpy.types.Operator):
return self.execute(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)
dprops = bpy.context.scene.DocProperties