Skip to content

Commit da71470

Browse files
committed
[nodes] Texturing: Exclusively use lists for ChoiceParams values
ChoiceParams that had their available values described in a tuple need to be updated to a list to be able to handle dynamic values.
1 parent 27aceb3 commit da71470

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

meshroom/nodes/aliceVision/Texturing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Texturing(desc.AVCommandLineNode):
130130
label="Bump Type",
131131
description="Export normal map or height map.",
132132
value="Normal",
133-
values=("Height", "Normal"),
133+
values=["Height", "Normal"],
134134
exclusive=True,
135135
uid=[0],
136136
enabled=lambda node: node.bumpMapping.enable.value,
@@ -140,7 +140,7 @@ class Texturing(desc.AVCommandLineNode):
140140
label="File Type",
141141
description="File type for the normal map texture.",
142142
value="exr",
143-
values = ("exr", "png", "tiff", "jpg"),
143+
values=["exr", "png", "tiff", "jpg"],
144144
exclusive=True,
145145
uid=[0],
146146
enabled=lambda node: node.bumpMapping.enable.value and node.bumpMapping.bumpType.value == "Normal",
@@ -150,7 +150,7 @@ class Texturing(desc.AVCommandLineNode):
150150
label="File Type",
151151
description="File type for the height map texture.",
152152
value="exr",
153-
values=("exr",),
153+
values=["exr",],
154154
exclusive=True,
155155
uid=[0],
156156
enabled=lambda node: node.bumpMapping.enable.value and node.bumpMapping.bumpType.value == "Height",
@@ -177,7 +177,7 @@ class Texturing(desc.AVCommandLineNode):
177177
label="File Type",
178178
description="File type for the height map texture.",
179179
value="exr",
180-
values=("exr"),
180+
values=["exr"],
181181
exclusive=True,
182182
uid=[0],
183183
enabled=lambda node: node.displacementMapping.enable.value,
@@ -192,7 +192,7 @@ class Texturing(desc.AVCommandLineNode):
192192
" - LSCM (<= 600k faces): optimize space. Generates one atlas.\n"
193193
" - ABF (<= 300k faces): optimize space and stretch. Generates one atlas.",
194194
value="Basic",
195-
values=("Basic", "LSCM", "ABF"),
195+
values=["Basic", "LSCM", "ABF"],
196196
exclusive=True,
197197
uid=[0],
198198
),

0 commit comments

Comments
 (0)