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:
parent
bb474ecbd2
commit
c67ab5bb8d
@ -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…
x
Reference in New Issue
Block a user