From 6e027bd51e117a9cc49b756f000d88fc8f35ed16 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Tue, 2 Oct 2012 10:15:11 +0000 Subject: [PATCH] Fixing a bug where applied armeture has no skeleton attached. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9791 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/scene/plugins/blender/modifiers/ArmatureModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7b5b1f6d5..573f13d5d 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 @@ -187,7 +187,7 @@ import com.jme3.util.BufferUtils; if (invalid) { LOGGER.log(Level.WARNING, "Armature modifier is invalid! Cannot be applied to: {0}", node.getName()); }// if invalid, animData will be null - if (animData == null) { + if (animData == null || skeleton == null) { return node; }