Skip to content

Commit c12fa4d

Browse files
committed
Fix to look for exact matches to avoid extracting based on regular express.
1 parent 7f46bbf commit c12fa4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

flask/gpuopen/MaterialXGPUOpenApp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def handle_extract_material(self, data):
174174
update_mtlx = data.get('update_materialx', False)
175175
if not have_mx:
176176
update_mtlx = False
177-
data_items = self.loader.downloadPackageByExpression(expression)
177+
178+
# Since we are selecting only one existing material, use exact match search
179+
exact_match = True
180+
data_items = self.loader.downloadPackageByExpression(expression, exact_match)
178181

179182
for data_item in data_items:
180183
status_message = f'Extracting material: {data_item[1]}'

0 commit comments

Comments
 (0)