Skip to content

Commit

Permalink
fix path with space
Browse files Browse the repository at this point in the history
  • Loading branch information
deakcor committed Dec 15, 2021
1 parent 4467b38 commit 5758e1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions obj-parse/ObjParse.gd
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ static func _create_mtl(obj:String,textures:Dictionary)->Dictionary:
pass
_:
if parts[0] in ["map_Kd","map_Ks","map_Ka"]:
if textures.has(parts[1]):
currentMat.albedo_texture = _create_texture(textures[parts[1]])
var path=line.split(" ", false,1)[1]
if textures.has(path):
currentMat.albedo_texture = _create_texture(textures[path])
return mats

static func _parse_mtl_file(path):
Expand Down

0 comments on commit 5758e1b

Please sign in to comment.