diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java index 5df9f34b1..a206809ca 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java @@ -75,11 +75,9 @@ public class JmeLight extends AbstractSceneExplorerNode { protected void fireSave(boolean modified) { Node parent = getParentNode(); - if (parent != null) { - dataObject = parent.getLookup().lookup(DataObject.class); - } - if (dataObject != null) { - dataObject.setModified(true); + if (parent instanceof AbstractSceneExplorerNode) { + AbstractSceneExplorerNode par=(AbstractSceneExplorerNode)parent; + par.fireSave(modified); } }