Browse Source

* Mesh.extractVertexData() will copy max weights per vert as well, this is needed for animation to work

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9011 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..rd 14 years ago
parent
commit
95efa5b2ff
1 changed files with 3 additions and 0 deletions
  1. 3 0
      engine/src/core/com/jme3/scene/Mesh.java

+ 3 - 0
engine/src/core/com/jme3/scene/Mesh.java

@@ -1153,6 +1153,9 @@ public class Mesh implements Savable, Cloneable {
             setBuffer(newVb);
         }
         
+        // Copy max weights per vertex as well
+        setMaxNumWeights(other.getMaxNumWeights());
+        
         // The data has been copied over, update informations
         updateCounts();
         updateBound();