Fixed issue in BufferUtils where quaternion and verctor4f were initialized with 3 zeros in the buffer instead of 4.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10491 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent cffb44f3d0
commit e92172d2b7
  1. 4
      engine/src/core/com/jme3/util/BufferUtils.java

@ -195,7 +195,7 @@ public final class BufferUtils {
if (element != null) {
buff.put(element.getX()).put(element.getY()).put(element.getZ()).put(element.getW());
} else {
buff.put(0).put(0).put(0);
buff.put(0).put(0).put(0).put(0);
}
}
buff.flip();
@ -217,7 +217,7 @@ public final class BufferUtils {
if (data[x] != null) {
buff.put(data[x].getX()).put(data[x].getY()).put(data[x].getZ()).put(data[x].getW());
} else {
buff.put(0).put(0).put(0);
buff.put(0).put(0).put(0).put(0);
}
}
buff.flip();

Loading…
Cancel
Save