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
This commit is contained in:
Kae..pl 2013-11-17 12:51:28 +00:00
parent a01e9ab41c
commit fd28efd64c

View File

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