From 43e1446b3a7da474eb430d6607f16d3ca0934252 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Sat, 25 Jan 2014 12:45:38 +0000 Subject: [PATCH] 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/trunk@11003 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../plugins/blender/modifiers/ArmatureModifier.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java b/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java index 395097a96..731e55d40 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java +++ b/engine/src/blender/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(); } }