- another SceneToolController threading fix

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8635 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-11-10 03:37:28 +00:00
parent 102257be93
commit 35560cd836

View File

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