浏览代码

* Fixed issue where OBJ loader would fail to parse faces correctly if they had more than 1 space in them

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10046 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..om 12 年之前
父节点
当前提交
5a90cd7082
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java

+ 1 - 1
engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java

@@ -234,7 +234,7 @@ public final class OBJLoader implements AssetLoader {
         vertList.clear();
 
         String line = scan.nextLine().trim();
-        String[] verticies = line.split("\\s");
+        String[] verticies = line.split("\\s+");
         for (String vertex : verticies){
             int v = 0;
             int vt = 0;