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 +}