From 1038806ccd7ca3ac4c14e16d7d774cb77a76733f Mon Sep 17 00:00:00 2001 From: Aurore LAFAURIE Date: Wed, 31 Jul 2024 15:10:13 +0200 Subject: [PATCH] [ui] By default no pipeline is provided and we can create empty project --- meshroom/ui/app.py | 2 +- meshroom/ui/reconstruction.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/app.py b/meshroom/ui/app.py index 7ecdbae1..8d48c16c 100644 --- a/meshroom/ui/app.py +++ b/meshroom/ui/app.py @@ -89,7 +89,7 @@ class MeshroomApp(QApplication): parser.add_argument('-s', '--save', metavar='PROJECT.mg', type=str, default='', help='Save the created scene.') parser.add_argument('-p', '--pipeline', metavar="FILE.mg/" + "/".join(meshroom.core.pipelineTemplates), type=str, - default=os.environ.get("MESHROOM_DEFAULT_PIPELINE", "photogrammetry"), + default=os.environ.get("MESHROOM_DEFAULT_PIPELINE", ""), help='Override the default Meshroom pipeline with this external or template graph.') parser.add_argument("--submitLabel", metavar='SUBMITLABEL', type=str, help="Label of a node in the submitter", default='[Meshroom] {projectName}') parser.add_argument("--verbose", help="Verbosity level", default=os.environ.get('MESHROOM_VERBOSE', 'warning'), diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index 5502074f..dd682c8c 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -510,6 +510,8 @@ class Reconstruction(UIGraph): @Slot(str) def new(self, pipeline=None): p = pipeline if pipeline != None else self._defaultPipeline + if not p: + return """ Create a new pipeline. """ # Lower the input and the dictionary keys to make sure that all input types can be found: # - correct pipeline name but the case does not match (e.g. panoramaHDR instead of panoramaHdr)