diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeTerrainGrid.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeTerrainGrid.java index 0acb25cc7..ed47197af 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeTerrainGrid.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeTerrainGrid.java @@ -64,6 +64,13 @@ public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene this.geom = spatial; setName(spatial.getName()); geom.addListener("GuiListener", this); + SceneApplication.getApplication().enqueue(new Callable() { + + public Void call() throws Exception { + geom.initialize(SceneApplication.getApplication().getCamera().getLocation()); + return null; + } + }); } @Override @@ -86,13 +93,6 @@ public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene if (obj == null) { return sheet; } - SceneApplication.getApplication().enqueue(new Callable() { - - public Void call() throws Exception { - obj.initialize(SceneApplication.getApplication().getCamera().getLocation()); - return null; - } - }); // createFields(obj.getClass(), set, obj);