Better logging and handling of failed model file loading

This commit is contained in:
Jarrod Doyle 2024-08-18 11:14:07 +01:00
parent 30db43eac8
commit 5aafab148b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ public partial class Model : Node3D
var modelFile = new ModelFile(modelPath); var modelFile = new ModelFile(modelPath);
if (modelFile == null) if (modelFile == null)
{ {
GD.Print("UH OH"); GD.Print($"Failed to load model file: {modelPath}");
return;
} }
// TODO: Remove this disgusting hack // TODO: Remove this disgusting hack