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
3.0
rem..om 12 years ago
parent a1316b4514
commit 7e28558ece
  1. 11
      sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerToolController.java

@ -281,8 +281,15 @@ public class SceneComposerToolController extends SceneToolController {
}
protected void refreshNonSpatialMarkers() {
nonSpatialMarkersNode.detachAllChildren();
addMarkers(rootNode.getLookup().lookup(Node.class));
SceneApplication.getApplication().enqueue(new Callable<Void>() {
public Void call() throws Exception {
nonSpatialMarkersNode.detachAllChildren();
addMarkers(rootNode.getLookup().lookup(Node.class));
return null;
}
});
}
private void addMarkers(Node parent) {

Loading…
Cancel
Save