From a01e9ab41c8c3c0ac1919bf591c90c38246b403e Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Sun, 17 Nov 2013 12:34:48 +0000 Subject: [PATCH] Bugfix: vertices colors are now applied correctly. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10891 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/scene/plugins/blender/meshes/MeshHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java index da1dfee9d..f5bade23b 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/meshes/MeshHelper.java @@ -496,7 +496,7 @@ public class MeshHelper extends AbstractBlenderHelper { byte g = ((Number) color.getFieldValue("g")).byteValue(); byte b = ((Number) color.getFieldValue("b")).byteValue(); byte a = ((Number) color.getFieldValue("a")).byteValue(); - verticesColors.add(new byte[] { b, g, r, a }); + verticesColors.add(new byte[] { r, g, b, a }); } } return verticesColors; @@ -523,7 +523,7 @@ public class MeshHelper extends AbstractBlenderHelper { Pointer pMVert = (Pointer) meshStructure.getFieldValue("mvert"); List mVerts = pMVert.fetchData(blenderContext.getInputStream()); - if (this.fixUpAxis) { + if (fixUpAxis) { for (int i = 0; i < count; ++i) { DynamicArray coordinates = (DynamicArray) mVerts.get(i).getFieldValue("co"); result[i][0] = new Vector3f(coordinates.get(0).floatValue(), coordinates.get(2).floatValue(), -coordinates.get(1).floatValue());