소스 검색

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
Kae..pl 13 년 전
부모
커밋
6e027bd51e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ArmatureModifier.java

+ 1 - 1
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;
 		}