[ui] By default no pipeline is provided and we can create empty project

This commit is contained in:
Aurore LAFAURIE 2024-07-31 15:10:13 +02:00
parent f326d45024
commit 1038806ccd
2 changed files with 3 additions and 1 deletions

View file

@ -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'),

View file

@ -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)