mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +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
|
value='{cache}/{nodeType}/{uid0}', # TODO
|
||||||
uid=[],
|
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(
|
desc.File(
|
||||||
name='outputSfm',
|
name='outputSfm',
|
||||||
label='Output SfM',
|
label='Output SfM',
|
||||||
|
@ -208,7 +200,7 @@ class CameraInit(desc.CommandLineNode):
|
||||||
"""
|
"""
|
||||||
if node.viewpoints:
|
if node.viewpoints:
|
||||||
sfmData = {
|
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)
|
node.viewpointsFile = '{cache}/{nodeType}/{uid0}/viewpoints.json'.format(**node._cmdVars)
|
||||||
with open(node.viewpointsFile, 'w') as f:
|
with open(node.viewpointsFile, 'w') as f:
|
||||||
|
|
Loading…
Add table
Reference in a new issue