Skip to content

Commit

Permalink
fix path with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
deakcor committed Dec 15, 2021
1 parent c36d62f commit 4467b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obj-parse/ObjParse.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 4467b38

Please sign in to comment.