Slightly working support for custom model textures

This commit is contained in:
Jarrod Doyle 2024-08-25 16:18:20 +01:00
parent 2365f09931
commit 0d7ff677de
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 1 deletions

View File

@ -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,