|
|
@ -53,8 +53,8 @@ import org.openide.util.actions.SystemAction; |
|
|
|
* |
|
|
|
* |
|
|
|
* @author normenhansen |
|
|
|
* @author normenhansen |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class) |
|
|
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) |
|
|
|
public class JmeLight extends AbstractSceneExplorerNode{ |
|
|
|
public class JmeLight extends AbstractSceneExplorerNode { |
|
|
|
|
|
|
|
|
|
|
|
private Spatial spatial; |
|
|
|
private Spatial spatial; |
|
|
|
private Light light; |
|
|
|
private Light light; |
|
|
@ -127,7 +127,13 @@ public class JmeLight extends AbstractSceneExplorerNode{ |
|
|
|
spatial.removeLight(light); |
|
|
|
spatial.removeLight(light); |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
}).get(); |
|
|
|
}).get(); |
|
|
|
|
|
|
|
if (getParentNode() instanceof JmeNode) { |
|
|
|
|
|
|
|
JmeNode node = ((JmeNode) getParentNode()); |
|
|
|
|
|
|
|
if (node != null) { |
|
|
|
|
|
|
|
node.refresh(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} catch (InterruptedException ex) { |
|
|
|
} catch (InterruptedException ex) { |
|
|
|
Exceptions.printStackTrace(ex); |
|
|
|
Exceptions.printStackTrace(ex); |
|
|
|
} catch (ExecutionException ex) { |
|
|
|
} catch (ExecutionException ex) { |
|
|
@ -142,5 +148,4 @@ public class JmeLight extends AbstractSceneExplorerNode{ |
|
|
|
public Class getExplorerNodeClass() { |
|
|
|
public Class getExplorerNodeClass() { |
|
|
|
return JmeLight.class; |
|
|
|
return JmeLight.class; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|