SDK : fixed an issue causing "scene graph updated from another thread " error int he scenecomposer when adding an audio node
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10729 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a1316b4514
commit
7e28558ece
@ -281,8 +281,15 @@ public class SceneComposerToolController extends SceneToolController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void refreshNonSpatialMarkers() {
|
protected void refreshNonSpatialMarkers() {
|
||||||
|
SceneApplication.getApplication().enqueue(new Callable<Void>() {
|
||||||
|
|
||||||
|
public Void call() throws Exception {
|
||||||
nonSpatialMarkersNode.detachAllChildren();
|
nonSpatialMarkersNode.detachAllChildren();
|
||||||
addMarkers(rootNode.getLookup().lookup(Node.class));
|
addMarkers(rootNode.getLookup().lookup(Node.class));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addMarkers(Node parent) {
|
private void addMarkers(Node parent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user