NPE bugfix (properties are only applied for Geometries).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Kae..pl 2011-06-23 16:43:53 +00:00
parent bb474ecbd2
commit c67ab5bb8d

View File

@ -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) { if(result instanceof Geometry && properties != null && properties.getValue() != null) {
((Node)result).setUserData("properties", properties); ((Geometry)result).setUserData("properties", properties);
} }
if(result != null) { if(result != null) {