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
This commit is contained in:
rem..om 2013-03-16 12:04:04 +00:00
parent cffb44f3d0
commit e92172d2b7

View File

@ -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();