From 5aafab148b5ca509f733a784424ecafc3629bac8 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 18 Aug 2024 11:14:07 +0100 Subject: [PATCH] Better logging and handling of failed model file loading --- project/code/TMV/Model.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/code/TMV/Model.cs b/project/code/TMV/Model.cs index 6bd182a..d653d37 100644 --- a/project/code/TMV/Model.cs +++ b/project/code/TMV/Model.cs @@ -25,7 +25,8 @@ public partial class Model : Node3D var modelFile = new ModelFile(modelPath); if (modelFile == null) { - GD.Print("UH OH"); + GD.Print($"Failed to load model file: {modelPath}"); + return; } // TODO: Remove this disgusting hack