mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] By default no pipeline is provided and we can create empty project
This commit is contained in:
parent
f326d45024
commit
1038806ccd
2 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,7 @@ class MeshroomApp(QApplication):
|
||||||
parser.add_argument('-s', '--save', metavar='PROJECT.mg', type=str, default='',
|
parser.add_argument('-s', '--save', metavar='PROJECT.mg', type=str, default='',
|
||||||
help='Save the created scene.')
|
help='Save the created scene.')
|
||||||
parser.add_argument('-p', '--pipeline', metavar="FILE.mg/" + "/".join(meshroom.core.pipelineTemplates), type=str,
|
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.')
|
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("--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'),
|
parser.add_argument("--verbose", help="Verbosity level", default=os.environ.get('MESHROOM_VERBOSE', 'warning'),
|
||||||
|
|
|
@ -510,6 +510,8 @@ class Reconstruction(UIGraph):
|
||||||
@Slot(str)
|
@Slot(str)
|
||||||
def new(self, pipeline=None):
|
def new(self, pipeline=None):
|
||||||
p = pipeline if pipeline != None else self._defaultPipeline
|
p = pipeline if pipeline != None else self._defaultPipeline
|
||||||
|
if not p:
|
||||||
|
return
|
||||||
""" Create a new pipeline. """
|
""" Create a new pipeline. """
|
||||||
# Lower the input and the dictionary keys to make sure that all input types can be found:
|
# 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)
|
# - correct pipeline name but the case does not match (e.g. panoramaHDR instead of panoramaHdr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue