Browse Source

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 years ago
parent
commit
c67ab5bb8d

+ 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) {