Bugfix: animation control is now applied once per node and not many times (this happened when node had several different meshes).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11003 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
experimental
Kae..pl 11 years ago
parent ad7013e228
commit 69978c710e
  1. 9
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java

@ -184,12 +184,11 @@ import com.jme3.util.BufferUtils;
LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e);
invalid = true;
}
AnimationHelper animationHelper = blenderContext.getHelper(AnimationHelper.class);
animationHelper.applyAnimations(node, skeleton, blenderContext.getBlenderKey().getSkeletonAnimationNames(node.getName()));
node.updateModelBound();
}
AnimationHelper animationHelper = blenderContext.getHelper(AnimationHelper.class);
animationHelper.applyAnimations(node, skeleton, blenderContext.getBlenderKey().getSkeletonAnimationNames(node.getName()));
node.updateModelBound();
}
}

Loading…
Cancel
Save