* Fix issue 518

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9704 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 12 years ago
parent 9ad757596b
commit c8b3ae7f64
  1. 2
      engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java

@ -299,7 +299,7 @@ public final class OBJLoader implements AssetLoader {
Vector2f v = new Vector2f(); Vector2f v = new Vector2f();
String line = scan.nextLine().trim(); String line = scan.nextLine().trim();
String[] split = line.split("\\s"); String[] split = line.split("\\s++");
v.setX( Float.parseFloat(split[0].trim()) ); v.setX( Float.parseFloat(split[0].trim()) );
v.setY( Float.parseFloat(split[1].trim()) ); v.setY( Float.parseFloat(split[1].trim()) );

Loading…
Cancel
Save