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])