From 20822e94246f4306a6531c71e4282a819c15edc8 Mon Sep 17 00:00:00 2001 From: Ezio Helios <78869679+EzioHelios@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:20:57 +0800 Subject: [PATCH] Update Utils.cs --- Obj2Tiles/Utils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Obj2Tiles/Utils.cs b/Obj2Tiles/Utils.cs index 9e3b423..7a16a4c 100644 --- a/Obj2Tiles/Utils.cs +++ b/Obj2Tiles/Utils.cs @@ -86,7 +86,7 @@ private static IEnumerable GetMtlDependencies(string mtlPath) if (trimmedLine.StartsWith("map_Ns")) { - dependencies.Add(trimmedLine[7..]); + dependencies.Add(trimmedLine[7..].Trim()); continue; } @@ -172,4 +172,4 @@ public static void ConvertB3dm(string objPath, string destPath) File.WriteAllBytes(destPath, b3dm.ToBytes()); } -} \ No newline at end of file +}