NPE bugfix (properties are only applied for Geometries).

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 14 years ago
parent bb474ecbd2
commit c67ab5bb8d
  1. 4
      engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java

@ -263,8 +263,8 @@ public class ObjectHelper extends AbstractBlenderHelper {
//reading custom properties
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) {

Loading…
Cancel
Save