Selaa lähdekoodia

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

rem..om 12 vuotta sitten
vanhempi
commit
f8c466f329
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      engine/src/core/com/jme3/scene/Mesh.java

+ 3 - 1
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;
             }