userdata to null again once all data is removed.

define_list_fix
NemesisMate 9 years ago committed by GitHub
parent e2b6c51730
commit cdc708dcda
  1. 3
      jme3-core/src/main/java/com/jme3/scene/Spatial.java

@ -1530,6 +1530,9 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Cloneab
if(data == null){
userData.remove(key);
if(userData.isEmpty()) {
userData = null;
}
}else if (data instanceof Savable) {
userData.put(key, (Savable) data);
} else {

Loading…
Cancel
Save