From 4467b38d0486d72b619e0f8aff62f671cf9982d0 Mon Sep 17 00:00:00 2001 From: Vincent D <40196601+deakcor@users.noreply.github.com> Date: Wed, 15 Dec 2021 20:48:37 +0100 Subject: [PATCH] fix path with spaces --- obj-parse/ObjParse.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj-parse/ObjParse.gd b/obj-parse/ObjParse.gd index 1c0c557..d31a47b 100644 --- a/obj-parse/ObjParse.gd +++ b/obj-parse/ObjParse.gd @@ -58,7 +58,7 @@ static func get_mtl_tex_paths(mtl_path:String)->Array: var lines := file.get_as_text().split("\n", false) file.close() for line in lines: - var parts = line.split(" ", false) + var parts = line.split(" ", false,1) if parts[0] in ["map_Kd","map_Ks","map_Ka"]: if !parts[1] in paths: paths.push_back(parts[1])