Skip to content

Commit

Permalink
[nodes] CameraInit: no more params invalidation
Browse files Browse the repository at this point in the history
Params are only used on drag&drop and do not invalidate the node
computation.
Only Viewpoints and Intrinsics are now used in the invalidation.
  • Loading branch information
fabiencastan committed Jul 29, 2020
1 parent 9e6c137 commit 7b1a2aa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions meshroom/nodes/aliceVision/CameraInit.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ class CameraInit(desc.CommandLineNode):
description='Empirical value for the field of view in degree.',
value=45.0,
range=(0, 180.0, 1),
uid=[0],
uid=[],
advanced=True,
),
desc.ChoiceParam(
name='groupCameraFallback',
Expand All @@ -173,7 +174,7 @@ class CameraInit(desc.CommandLineNode):
values=['global', 'folder', 'image'],
value='folder',
exclusive=True,
uid=[0],
uid=[],
advanced=True,
),
desc.ChoiceParam(
Expand All @@ -183,7 +184,7 @@ class CameraInit(desc.CommandLineNode):
value=['pinhole', 'radial1', 'radial3', 'brown', 'fisheye4', 'fisheye1'],
values=['pinhole', 'radial1', 'radial3', 'brown', 'fisheye4', 'fisheye1'],
exclusive=False,
uid=[0],
uid=[],
joinChar=',',
advanced=True,
),
Expand All @@ -196,7 +197,7 @@ class CameraInit(desc.CommandLineNode):
value='metadata',
values=['metadata', 'filename'],
exclusive=True,
uid=[0],
uid=[],
advanced=True,
),
desc.StringParam(
Expand All @@ -208,7 +209,7 @@ class CameraInit(desc.CommandLineNode):
' - Match the longest number at the end of filename (default value): ".*?(\d+)"\n'
' - Match the first number found in filename : "(\d+).*"\n',
value='.*?(\d+)',
uid=[0],
uid=[],
advanced=True,
enabled=lambda node: node.viewIdMethod.value == 'filename',
),
Expand Down

0 comments on commit 7b1a2aa

Please sign in to comment.