From 95efa5b2ff237edab9c2ed62045ce4161af6ef6d Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Mon, 9 Jan 2012 04:38:16 +0000 Subject: [PATCH] * 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 --- engine/src/core/com/jme3/scene/Mesh.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/core/com/jme3/scene/Mesh.java b/engine/src/core/com/jme3/scene/Mesh.java index c1d214afa..6c587f2f2 100644 --- a/engine/src/core/com/jme3/scene/Mesh.java +++ b/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();