From ed77a80f141792598ccfe8ff0bd7f77222456f13 Mon Sep 17 00:00:00 2001 From: manavortex Date: Sun, 17 Dec 2023 12:55:55 +0100 Subject: [PATCH] file validation: printing material index for error checking --- Scripts/Wolvenkit_FileValidation.wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Wolvenkit_FileValidation.wscript b/Scripts/Wolvenkit_FileValidation.wscript index 90dcb65..9546141 100644 --- a/Scripts/Wolvenkit_FileValidation.wscript +++ b/Scripts/Wolvenkit_FileValidation.wscript @@ -1472,7 +1472,7 @@ function meshFile_CheckMaterialProperties(material, materialName, materialIndex) Object.entries(tmp).forEach(([key, definedMaterial]) => { if (type.startsWith("rRef:")) { - validateMaterialKeyValuePair(key, definedMaterial, `${materialName}.Values[${i}]`, meshSettings.validateMaterialsRecursively); + validateMaterialKeyValuePair(key, definedMaterial, `[${materialIndex}]${materialName}.Values[${i}]`, meshSettings.validateMaterialsRecursively); } if (meshSettings.checkDuplicateMaterialDefinitions && !key.endsWith("type")) { listOfMaterialProperties[materialIndex][key] = material_getMaterialPropertyValue(key, definedMaterial);