From 5a90cd70821cc1f4ac96a3053a53dab4d27c7165 Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Fri, 28 Dec 2012 03:07:25 +0000 Subject: [PATCH] * 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 --- engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java b/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java index 5184c610c..3d64dd3a5 100644 --- a/engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java +++ b/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;