mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
You can now open projects from the Ctrl-N shortcut.
This commit is contained in:
@@ -41,6 +41,12 @@ class BIM_MT_new_project(Menu):
|
|||||||
bl_label = "New Project"
|
bl_label = "New Project"
|
||||||
|
|
||||||
def draw(self, context):
|
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.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 (m) Project").preset = "metric_m"
|
||||||
self.layout.operator("bim.new_project", text="Metric (mm) Project").preset = "metric_mm"
|
self.layout.operator("bim.new_project", text="Metric (mm) Project").preset = "metric_mm"
|
||||||
|
|||||||
Reference in New Issue
Block a user