mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[nodes] CameraInit: remove extra outputSfM + fix sfmData for empty filepaths
This commit is contained in:
parent
80cad9386a
commit
2b73e0d80c
1 changed files with 1 additions and 9 deletions
|
@ -130,14 +130,6 @@ class CameraInit(desc.CommandLineNode):
|
|||
value='{cache}/{nodeType}/{uid0}', # TODO
|
||||
uid=[],
|
||||
),
|
||||
desc.File( # TODO: TO REMOVE
|
||||
name='outputSfM',
|
||||
label='Output SfM',
|
||||
description='''Output SfMData.''',
|
||||
value='{cache}/{nodeType}/{uid0}/sfm_data.json',
|
||||
uid=[],
|
||||
group="",
|
||||
),
|
||||
desc.File(
|
||||
name='outputSfm',
|
||||
label='Output SfM',
|
||||
|
@ -208,7 +200,7 @@ class CameraInit(desc.CommandLineNode):
|
|||
"""
|
||||
if node.viewpoints:
|
||||
sfmData = {
|
||||
"resources": [v["image"] for v in node.viewpoints.getPrimitiveValue(exportDefault=False)],
|
||||
"resources": [v.get("image", "") for v in node.viewpoints.getPrimitiveValue(exportDefault=False)],
|
||||
}
|
||||
node.viewpointsFile = '{cache}/{nodeType}/{uid0}/viewpoints.json'.format(**node._cmdVars)
|
||||
with open(node.viewpointsFile, 'w') as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue