New activate model operator to switch back to a MODEL_VIEW target view subcontext

This commit is contained in:
Dion Moult
2023-04-12 21:27:29 +10:00
parent 364e96ad1e
commit 617b2978c0
6 changed files with 46 additions and 10 deletions
@@ -196,7 +196,8 @@ class BIM_PT_drawings(Panel):
op = row.operator("bim.select_all_drawings", icon="SELECT_SUBTRACT", text="")
op = row.operator("bim.open_drawing", icon="URL", text="")
op.view = active_drawing.name
op = row.operator("bim.activate_view", icon="OUTLINER_OB_CAMERA", text="")
row.operator("bim.activate_model", icon="VIEW3D", text="")
op = row.operator("bim.activate_drawing", icon="OUTLINER_OB_CAMERA", text="")
op.drawing = active_drawing.ifc_definition_id
row.operator("bim.create_drawing", text="", icon="OUTPUT")
self.layout.template_list(