Fixed an issue where HW skinnings buffer were causing an exception when loading a mesh
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10799 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
2711e729d0
commit
2707b6586b
@ -1166,7 +1166,9 @@ public class Mesh implements Savable, Cloneable {
|
||||
// Now, create the vertex buffers
|
||||
SafeArrayList<VertexBuffer> oldVertexData = other.getBufferList();
|
||||
for (VertexBuffer oldVb : oldVertexData) {
|
||||
if (oldVb.getBufferType() == VertexBuffer.Type.Index) {
|
||||
if (oldVb.getBufferType() == VertexBuffer.Type.Index
|
||||
||oldVb.getBufferType() == VertexBuffer.Type.HWBoneIndex
|
||||
|| oldVb.getBufferType() == VertexBuffer.Type.HWBoneWeight ) {
|
||||
// ignore the index buffer
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user