SDK:
- another SceneToolController threading fix git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8635 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
102257be93
commit
35560cd836
@ -301,8 +301,16 @@ public class SceneToolController implements AppState {
|
|||||||
|
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
detachSelectionShape();
|
detachSelectionShape();
|
||||||
|
final Spatial cursor = this.cursor;
|
||||||
|
final Spatial grid = this.grid;
|
||||||
|
SceneApplication.getApplication().enqueue(new Callable<Void>() {
|
||||||
|
|
||||||
|
public Void call() throws Exception {
|
||||||
cursor.removeFromParent();
|
cursor.removeFromParent();
|
||||||
grid.removeFromParent();
|
grid.removeFromParent();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
SceneApplication.getApplication().getStateManager().detach(this);
|
SceneApplication.getApplication().getStateManager().detach(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user