diff --git a/project/code/TMV/Model.cs b/project/code/TMV/Model.cs index 32e7939..1b4894c 100644 --- a/project/code/TMV/Model.cs +++ b/project/code/TMV/Model.cs @@ -29,7 +29,7 @@ public partial class Model : Node3D } // TODO: Remove this disgusting hack. Not only is it a hack, it doesn't support custom models - var baseDir = ProjectSettings.GlobalizePath($"user://objects/tmp"); + var baseDir = Path.GetDirectoryName(modelPath); var options = new EnumerationOptions { MatchCasing = MatchCasing.CaseInsensitive,