From 9e60eda71a6d37b6248b3394a77a3f138904a108 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Mon, 3 Sep 2012 15:17:01 +0000 Subject: [PATCH] Fix for loading smooth meshes. (One small step for java compiler is a huge step for blender importer :D) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9701 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/meshes/MeshBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java index 72d61aed6..13a58d55c 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java @@ -168,7 +168,7 @@ import com.jme3.util.BufferUtils; index[i] = vertexList.size() - 1; } } else { - index[i] = vertexList.indexOf(verticesAndNormals[index[i]]); + index[i] = vertexList.indexOf(verticesAndNormals[index[i]][0]); } indexList.add(index[i]); }