|
|
@ -332,8 +332,8 @@ public final class OBJLoader implements AssetLoader { |
|
|
|
}else if (cmd.equals("usemtl")){ |
|
|
|
}else if (cmd.equals("usemtl")){ |
|
|
|
// use material from MTL lib for the following faces
|
|
|
|
// use material from MTL lib for the following faces
|
|
|
|
currentMatName = scan.next(); |
|
|
|
currentMatName = scan.next(); |
|
|
|
if (!matList.containsKey(currentMatName)) |
|
|
|
// if (!matList.containsKey(currentMatName))
|
|
|
|
throw new IOException("Cannot locate material " + currentMatName + " in MTL file!"); |
|
|
|
// throw new IOException("Cannot locate material " + currentMatName + " in MTL file!");
|
|
|
|
|
|
|
|
|
|
|
|
}else if (cmd.equals("mtllib")){ |
|
|
|
}else if (cmd.equals("mtllib")){ |
|
|
|
// specify MTL lib to use for this OBJ file
|
|
|
|
// specify MTL lib to use for this OBJ file
|
|
|
|