- fix Light not triggering save button
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8415 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
101e53569f
commit
51aa80a71a
@ -32,8 +32,6 @@
|
||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||
|
||||
import com.jme3.gde.core.scene.SceneApplication;
|
||||
import com.jme3.gde.core.sceneexplorer.nodes.AbstractSceneExplorerNode;
|
||||
import com.jme3.gde.core.sceneexplorer.nodes.SceneExplorerNode;
|
||||
import com.jme3.light.Light;
|
||||
import com.jme3.math.ColorRGBA;
|
||||
import com.jme3.scene.Spatial;
|
||||
@ -45,6 +43,7 @@ import javax.swing.Action;
|
||||
import org.openide.actions.DeleteAction;
|
||||
import org.openide.loaders.DataObject;
|
||||
import org.openide.nodes.Children;
|
||||
import org.openide.nodes.Node;
|
||||
import org.openide.nodes.Sheet;
|
||||
import org.openide.util.Exceptions;
|
||||
import org.openide.util.ImageUtilities;
|
||||
@ -74,6 +73,16 @@ public class JmeLight extends AbstractSceneExplorerNode {
|
||||
setName("Light");
|
||||
}
|
||||
|
||||
protected void fireSave(boolean modified) {
|
||||
Node parent = getParentNode();
|
||||
if (parent != null) {
|
||||
dataObject = parent.getLookup().lookup(DataObject.class);
|
||||
}
|
||||
if (dataObject != null) {
|
||||
dataObject.setModified(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Image getIcon(int type) {
|
||||
return smallImage;
|
||||
@ -129,7 +138,7 @@ public class JmeLight extends AbstractSceneExplorerNode {
|
||||
spatial.removeLight(light);
|
||||
return null;
|
||||
}
|
||||
}).get();
|
||||
}).get();
|
||||
if (getParentNode() instanceof JmeNode) {
|
||||
JmeNode node = ((JmeNode) getParentNode());
|
||||
if (node != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user