diff --git a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerToolController.java b/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerToolController.java index c0ab719ee..2812c70fc 100644 --- a/sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneComposerToolController.java +++ b/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() { + + public Void call() throws Exception { + nonSpatialMarkersNode.detachAllChildren(); + addMarkers(rootNode.getLookup().lookup(Node.class)); + return null; + } + }); + } private void addMarkers(Node parent) {