From 0d7ff677dee8670e689758e94db7ef1fa60897c5 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 25 Aug 2024 16:18:20 +0100 Subject: [PATCH] Slightly working support for custom model textures --- project/code/TMV/Model.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,