Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around for #176 "Scene graph is not properly updated for renderi… #490

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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