mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 09:47:20 +02:00
[bin] meshroom_newNodeType
: Remove all invalidate=
arguments
`invalidate` does not need to be specified anymore and is set to `True` by default. Output attributes with `invalidate=True` are handled at the attribute-level.
This commit is contained in:
parent
b981ef651c
commit
07b65499ce
1 changed files with 0 additions and 13 deletions
|
@ -178,7 +178,6 @@ for cmdLineArg in cmdLineArgs:
|
|||
isOutput = 'output' in cmdLineArgLower or 'out' in namesLower
|
||||
isInt = is_int(value)
|
||||
isFloat = is_float(value)
|
||||
uid = False if isOutput else True
|
||||
|
||||
argStr = None
|
||||
if isBool:
|
||||
|
@ -188,14 +187,12 @@ for cmdLineArg in cmdLineArgs:
|
|||
label='{label}',
|
||||
description='''{description}''',
|
||||
value={value},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
description=description,
|
||||
value=quotesForStrings(value),
|
||||
arg=arg,
|
||||
uid=uid,
|
||||
)
|
||||
elif isFile:
|
||||
argStr = """
|
||||
|
@ -204,14 +201,12 @@ for cmdLineArg in cmdLineArgs:
|
|||
label='{label}',
|
||||
description='''{description}''',
|
||||
value={value},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
description=description,
|
||||
value=quotesForStrings(value),
|
||||
arg=arg,
|
||||
uid=uid,
|
||||
)
|
||||
elif isChoice:
|
||||
argStr = """
|
||||
|
@ -222,7 +217,6 @@ for cmdLineArg in cmdLineArgs:
|
|||
value={value},
|
||||
values={values},
|
||||
exclusive={exclusive},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
|
@ -230,7 +224,6 @@ for cmdLineArg in cmdLineArgs:
|
|||
value=quotesForStrings(value),
|
||||
values=values,
|
||||
exclusive=True,
|
||||
uid=uid,
|
||||
)
|
||||
elif isInt:
|
||||
argStr = """
|
||||
|
@ -240,14 +233,12 @@ for cmdLineArg in cmdLineArgs:
|
|||
description='''{description}''',
|
||||
value={value},
|
||||
range={range},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
description=description,
|
||||
value=value,
|
||||
range='(-sys.maxsize, sys.maxsize, 1)',
|
||||
uid=uid,
|
||||
)
|
||||
elif isFloat:
|
||||
argStr = """
|
||||
|
@ -257,14 +248,12 @@ for cmdLineArg in cmdLineArgs:
|
|||
description='''{description}''',
|
||||
value={value},
|
||||
range={range},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
description=description,
|
||||
value=value,
|
||||
range='''(-float('inf'), float('inf'), 0.01)''',
|
||||
uid=uid,
|
||||
)
|
||||
else:
|
||||
argStr = """
|
||||
|
@ -273,14 +262,12 @@ for cmdLineArg in cmdLineArgs:
|
|||
label='{label}',
|
||||
description='''{description}''',
|
||||
value={value},
|
||||
invalidate={uid},
|
||||
),""".format(
|
||||
name=longName,
|
||||
label=convertToLabel(longName),
|
||||
description=description,
|
||||
value=quotesForStrings(value),
|
||||
range=range,
|
||||
uid=uid,
|
||||
)
|
||||
if isOutput:
|
||||
outputNodeStr += argStr
|
||||
|
|
Loading…
Add table
Reference in a new issue