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:
parent
cffb44f3d0
commit
e92172d2b7
@ -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…
x
Reference in New Issue
Block a user