This commit is contained in:
Dion Moult
2023-05-26 19:24:14 +10:00
parent e4ff87cb01
commit 43bfd51ccb
6 changed files with 37 additions and 7 deletions
@@ -1442,6 +1442,14 @@ class Drawing(blenderbim.core.tool.Drawing):
camera = bpy.context.scene.camera
return True if (camera and camera.data.type == "ORTHO") else False
@classmethod
def is_active_drawing(cls, drawing):
return drawing.id() == bpy.context.scene.DocProperties.active_drawing_id
@classmethod
def run_drawing_activate_model(cls):
bpy.ops.bim.activate_model()
@classmethod
def activate_drawing(cls, camera):
area = next(area for area in bpy.context.screen.areas if area.type == "VIEW_3D")