mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +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
|
isOutput = 'output' in cmdLineArgLower or 'out' in namesLower
|
||||||
isInt = is_int(value)
|
isInt = is_int(value)
|
||||||
isFloat = is_float(value)
|
isFloat = is_float(value)
|
||||||
uid = False if isOutput else True
|
|
||||||
|
|
||||||
argStr = None
|
argStr = None
|
||||||
if isBool:
|
if isBool:
|
||||||
|
@ -188,14 +187,12 @@ for cmdLineArg in cmdLineArgs:
|
||||||
label='{label}',
|
label='{label}',
|
||||||
description='''{description}''',
|
description='''{description}''',
|
||||||
value={value},
|
value={value},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
description=description,
|
description=description,
|
||||||
value=quotesForStrings(value),
|
value=quotesForStrings(value),
|
||||||
arg=arg,
|
arg=arg,
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
elif isFile:
|
elif isFile:
|
||||||
argStr = """
|
argStr = """
|
||||||
|
@ -204,14 +201,12 @@ for cmdLineArg in cmdLineArgs:
|
||||||
label='{label}',
|
label='{label}',
|
||||||
description='''{description}''',
|
description='''{description}''',
|
||||||
value={value},
|
value={value},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
description=description,
|
description=description,
|
||||||
value=quotesForStrings(value),
|
value=quotesForStrings(value),
|
||||||
arg=arg,
|
arg=arg,
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
elif isChoice:
|
elif isChoice:
|
||||||
argStr = """
|
argStr = """
|
||||||
|
@ -222,7 +217,6 @@ for cmdLineArg in cmdLineArgs:
|
||||||
value={value},
|
value={value},
|
||||||
values={values},
|
values={values},
|
||||||
exclusive={exclusive},
|
exclusive={exclusive},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
|
@ -230,7 +224,6 @@ for cmdLineArg in cmdLineArgs:
|
||||||
value=quotesForStrings(value),
|
value=quotesForStrings(value),
|
||||||
values=values,
|
values=values,
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
elif isInt:
|
elif isInt:
|
||||||
argStr = """
|
argStr = """
|
||||||
|
@ -240,14 +233,12 @@ for cmdLineArg in cmdLineArgs:
|
||||||
description='''{description}''',
|
description='''{description}''',
|
||||||
value={value},
|
value={value},
|
||||||
range={range},
|
range={range},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
description=description,
|
description=description,
|
||||||
value=value,
|
value=value,
|
||||||
range='(-sys.maxsize, sys.maxsize, 1)',
|
range='(-sys.maxsize, sys.maxsize, 1)',
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
elif isFloat:
|
elif isFloat:
|
||||||
argStr = """
|
argStr = """
|
||||||
|
@ -257,14 +248,12 @@ for cmdLineArg in cmdLineArgs:
|
||||||
description='''{description}''',
|
description='''{description}''',
|
||||||
value={value},
|
value={value},
|
||||||
range={range},
|
range={range},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
description=description,
|
description=description,
|
||||||
value=value,
|
value=value,
|
||||||
range='''(-float('inf'), float('inf'), 0.01)''',
|
range='''(-float('inf'), float('inf'), 0.01)''',
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
argStr = """
|
argStr = """
|
||||||
|
@ -273,14 +262,12 @@ for cmdLineArg in cmdLineArgs:
|
||||||
label='{label}',
|
label='{label}',
|
||||||
description='''{description}''',
|
description='''{description}''',
|
||||||
value={value},
|
value={value},
|
||||||
invalidate={uid},
|
|
||||||
),""".format(
|
),""".format(
|
||||||
name=longName,
|
name=longName,
|
||||||
label=convertToLabel(longName),
|
label=convertToLabel(longName),
|
||||||
description=description,
|
description=description,
|
||||||
value=quotesForStrings(value),
|
value=quotesForStrings(value),
|
||||||
range=range,
|
range=range,
|
||||||
uid=uid,
|
|
||||||
)
|
)
|
||||||
if isOutput:
|
if isOutput:
|
||||||
outputNodeStr += argStr
|
outputNodeStr += argStr
|
||||||
|
|
Loading…
Add table
Reference in a new issue