From c67ab5bb8dcddb1198ac6c7146376cf64d854c04 Mon Sep 17 00:00:00 2001 From: "Kae..pl" Date: Thu, 23 Jun 2011 16:43:53 +0000 Subject: [PATCH] NPE bugfix (properties are only applied for Geometries). git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7703 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java index 0fb9704bf..676de65e7 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/helpers/v249/ObjectHelper.java +++ b/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) {