Skip to content

Commit

Permalink
Merge pull request #490 from neph1/Work_around_for_IllegalStateException
Browse files Browse the repository at this point in the history
Work around for #176 "Scene graph is not properly updated for renderi…
  • Loading branch information
neph1 committed May 4, 2023
2 parents e7cbb2a + aa453c3 commit d2b4815
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import com.jme3.light.SpotLight;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import java.awt.event.ActionEvent;
import java.util.concurrent.Callable;
Expand Down Expand Up @@ -88,7 +89,11 @@ public JMenuItem getPopupPresenter() {
result.add(new JMenuItem(new AddDirectionalAction()));
result.add(new JMenuItem(new AddPointAction()));
result.add(new JMenuItem(new AddSpotAction()));
result.add(new JMenuItem(new AddProbeAction()));
// FIXME: This is a work around due to issue #176: Scene graph is not properly updated for rendering
// Something happens in LightProbeFactory
if(node instanceof Node) {
result.add(new JMenuItem(new AddProbeAction()));
}

return result;
}
Expand Down

0 comments on commit d2b4815

Please sign in to comment.