You can now open projects from the Ctrl-N shortcut.

This commit is contained in:
Dion Moult
2023-07-14 13:40:09 +10:00
parent 56e6c8e0e1
commit 8411feedf4
@@ -41,6 +41,12 @@ class BIM_MT_new_project(Menu):
bl_label = "New Project"
def draw(self, context):
self.layout.operator_context = "INVOKE_DEFAULT"
op = self.layout.operator("bim.load_project", text="Open IFC Project", icon="FILEBROWSER")
op.should_start_fresh_session = True
# Do we need to set it back to exec default?
# self.layout.operator_context = "EXEC_DEFAULT"
self.layout.separator()
self.layout.label(text="New IFC Project", icon_value=blenderbim.bim.icons["IFC"].icon_id)
self.layout.operator("bim.new_project", text="Metric (m) Project").preset = "metric_m"
self.layout.operator("bim.new_project", text="Metric (mm) Project").preset = "metric_mm"