소스 검색

NPE bugfix (properties are only applied for Geometries).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Kae..pl 14 년 전
부모
커밋
c67ab5bb8d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java

+ 2 - 2
engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java

@@ -263,8 +263,8 @@ public class ObjectHelper extends AbstractBlenderHelper {
 		
 		
 		//reading custom properties
 		//reading custom properties
 		Properties properties = this.loadProperties(objectStructure, dataRepository);
 		Properties properties = this.loadProperties(objectStructure, dataRepository);
-		if(properties != null && properties.getValue() != null) {
-			((Node)result).setUserData("properties", properties);
+		if(result instanceof Geometry && properties != null && properties.getValue() != null) {
+			((Geometry)result).setUserData("properties", properties);
 		}
 		}
 		
 		
 		if(result != null) {
 		if(result != null) {