Skip to content

Commit

Permalink
file validation: printing material index for error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
manavortex committed Dec 17, 2023
1 parent a6a0eac commit ed77a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Wolvenkit_FileValidation.wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed77a80

Please sign in to comment.