From 69978c710e18a519cd54909dc9ea35321906d1f3 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/branches/gradle-restructure@11003 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../plugins/blender/modifiers/ArmatureModifier.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java b/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java index 395097a96..731e55d40 100644 --- a/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java +++ b/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(); } }