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
experimental
rem..om 12 years ago
parent 2711e729d0
commit 2707b6586b
  1. 4
      engine/src/core/com/jme3/scene/Mesh.java

@ -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…
Cancel
Save