File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 4848import com .jme3 .light .SpotLight ;
4949import com .jme3 .math .ColorRGBA ;
5050import com .jme3 .math .Vector3f ;
51+ import com .jme3 .scene .Node ;
5152import com .jme3 .scene .Spatial ;
5253import java .awt .event .ActionEvent ;
5354import 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 }
You can’t perform that action at this time.
0 commit comments