diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java index 09d13472c..1536443b4 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java @@ -34,6 +34,7 @@ import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; +import java.util.concurrent.Callable; import java.util.logging.Logger; import org.openide.util.NbBundle; import org.openide.windows.TopComponent; @@ -96,7 +97,13 @@ public final class SceneViewerTopComponent extends TopComponent { if (e.getWheelRotation() < 0) { action = "MouseWheel"; } - app.getActiveCameraController().onAnalog(action, e.getWheelRotation(), 0); + SceneApplication.getApplication().enqueue(new Callable() { + + public Void call() throws Exception { + app.getActiveCameraController().onAnalog(action, e.getWheelRotation(), 0); + return null; + } + }); } }); addKeyListener(new KeyListener() {