File tree 1 file changed +6
-1
lines changed
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 48
48
import com .jme3 .light .SpotLight ;
49
49
import com .jme3 .math .ColorRGBA ;
50
50
import com .jme3 .math .Vector3f ;
51
+ import com .jme3 .scene .Node ;
51
52
import com .jme3 .scene .Spatial ;
52
53
import java .awt .event .ActionEvent ;
53
54
import java .util .concurrent .Callable ;
@@ -88,7 +89,11 @@ public JMenuItem getPopupPresenter() {
88
89
result .add (new JMenuItem (new AddDirectionalAction ()));
89
90
result .add (new JMenuItem (new AddPointAction ()));
90
91
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
+ }
92
97
93
98
return result ;
94
99
}
You can’t perform that action at this time.
0 commit comments