Change severity of missing assets to Warn

This commit is contained in:
2026-05-06 09:44:14 +02:00
parent a1bb5b74f8
commit a7b4c4a908
+2 -2
View File
@@ -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)
} }
} }
}) })