Bugfix: fixed a bug in loading vertex colors for non-smooth meshes.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10892 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
Kae..pl 11 years ago
parent a01e9ab41c
commit fd28efd64c
  1. 2
      engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshBuilder.java

@ -143,7 +143,7 @@ import com.jme3.util.BufferUtils;
globalVertexReferenceMap.put(materialNumber, vertexReferenceMap); globalVertexReferenceMap.put(materialNumber, vertexReferenceMap);
} }
faceIndex *= 4; faceIndex *= 3;
if (quad) { if (quad) {
vertexColorIndex[1] = 2; vertexColorIndex[1] = 2;
vertexColorIndex[2] = 3; vertexColorIndex[2] = 3;

Loading…
Cancel
Save