Skip to content

Commit d2b4815

Browse files
authored
Merge pull request #490 from neph1/Work_around_for_IllegalStateException
Work around for #176 "Scene graph is not properly updated for renderi…
2 parents e7cbb2a + aa453c3 commit d2b4815

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/NewLightPopup.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import com.jme3.light.SpotLight;
4949
import com.jme3.math.ColorRGBA;
5050
import com.jme3.math.Vector3f;
51+
import com.jme3.scene.Node;
5152
import com.jme3.scene.Spatial;
5253
import java.awt.event.ActionEvent;
5354
import java.util.concurrent.Callable;
@@ -88,7 +89,11 @@ public JMenuItem getPopupPresenter() {
8889
result.add(new JMenuItem(new AddDirectionalAction()));
8990
result.add(new JMenuItem(new AddPointAction()));
9091
result.add(new JMenuItem(new AddSpotAction()));
91-
result.add(new JMenuItem(new AddProbeAction()));
92+
// FIXME: This is a work around due to issue #176: Scene graph is not properly updated for rendering
93+
// Something happens in LightProbeFactory
94+
if(node instanceof Node) {
95+
result.add(new JMenuItem(new AddProbeAction()));
96+
}
9297

9398
return result;
9499
}

0 commit comments

Comments
 (0)