- fix camera toolbar flickering

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8629 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 76d04b6e49
commit d95e99ecc0
  1. 15
      sdk/jme3-core/src/com/jme3/gde/core/scene/controller/AbstractCameraController.java

@ -105,12 +105,7 @@ public abstract class AbstractCameraController extends AbstractAppState implemen
} }
SceneApplication.getApplication().setActiveCameraController(this); SceneApplication.getApplication().setActiveCameraController(this);
java.awt.EventQueue.invokeLater(new Runnable() { addAdditionnalToolbar();
public void run() {
addAdditionnalToolbar();
}
});
} }
private void addAdditionnalToolbar() { private void addAdditionnalToolbar() {
@ -135,13 +130,7 @@ public abstract class AbstractCameraController extends AbstractAppState implemen
inputManager.removeListener(this); inputManager.removeListener(this);
SceneApplication.getApplication().getStateManager().detach(this); SceneApplication.getApplication().getStateManager().detach(this);
if (SceneApplication.getApplication().getActiveCameraController() == this) { if (SceneApplication.getApplication().getActiveCameraController() == this) {
java.awt.EventQueue.invokeLater(new Runnable() { removeAdditionnalToolbar();
public void run() {
removeAdditionnalToolbar();
}
});
} }
} }

Loading…
Cancel
Save