Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix

  • Loading branch information...
commit fb61bac98c76ec5038d837800eca3e7057b4bd1a 1 parent 3fb82ff
bosoni authored
View
5 ...-loaders/model-loaders/src/com/badlogic/gdx/graphics/g3d/loaders/wavefront/ObjLoader.java
@@ -315,8 +315,9 @@ public void load(String name)
BufferedReader reader = new BufferedReader(new InputStreamReader(file.read()), 4096);
try {
while ((line = reader.readLine()) != null) {
+
if(line.length()>0 && line.charAt(0)=='\t')
- line = line.substring(1);
+ line = line.substring(1).trim();
tokens = line.split("\\s+");
@@ -329,7 +330,7 @@ else if (tokens[0].toLowerCase().equals("newmtl"))
Material mat;
Texture texture;
if(textureName.length() > 0)
- texture = new Texture(textureDir.child(textureName)); //Gdx.files.internal(TEXTURE_PATH + textureName));
+ texture = new Texture(textureDir.child(textureName));
else
texture = new Texture(1, 1, Format.RGB888); // create default texture
mat = new Material(curMatName, new TextureAttribute(texture, 0, "s_tex"),
Please sign in to comment.
Something went wrong with that request. Please try again.