Skip to content

Commit 82b44f0

Browse files
authored
Merge pull request #489 from neph1/Fix_casting_FOV_to_float
Fixes reported issue when changing camera near plane.
2 parents 68a24e8 + 8f25258 commit 82b44f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerTopComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ private void jSpinner1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIR
921921
// This is called, when the spinner of the near plane has been changed.
922922
float near = ((float)jSlider1.getValue() / 1000f);
923923
float spin = (Float)jSpinner1.getValue();
924-
float fov = (Float) fovSpinner.getValue();
924+
float fov = (int) fovSpinner.getValue();
925925
// Prevent an endless loop of state changes and don't change the slider when the spinner
926926
// has gone out of range, since this would lead to the slider's StateChanged overwriting the spinner again.
927927
// but we want the spinner to be a free-form field

0 commit comments

Comments
 (0)