|
|
@ -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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|