Change severity of missing assets to Warn
This commit is contained in:
@@ -365,11 +365,11 @@ func validateReferences(report *Report, document loadedDocument, resources, scri
|
|||||||
}
|
}
|
||||||
case field.Label == "Model":
|
case field.Label == "Model":
|
||||||
if !hasAsset(strings.ToLower(value), []string{"mdl"}, assets) {
|
if !hasAsset(strings.ToLower(value), []string{"mdl"}, assets) {
|
||||||
report.add(document.Path, fmt.Sprintf("missing model asset for %q", value), SeverityError)
|
report.add(document.Path, fmt.Sprintf("missing model asset for %q", value), SeverityWarning)
|
||||||
}
|
}
|
||||||
case field.Label == "Sound":
|
case field.Label == "Sound":
|
||||||
if !hasAsset(strings.ToLower(value), []string{"wav"}, assets) {
|
if !hasAsset(strings.ToLower(value), []string{"wav"}, assets) {
|
||||||
report.add(document.Path, fmt.Sprintf("missing sound asset for %q", value), SeverityError)
|
report.add(document.Path, fmt.Sprintf("missing sound asset for %q", value), SeverityWarning)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user