Merged revision 10799 from trunk

(Fixed an issue where HW skinnings buffer were causing an exception when loading a mesh)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@10805 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent 16d34f7bbb
commit f8c466f329
  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