|
@@ -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<Void>() {
|
|
|
+
|
|
|
+ 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<Void>() {
|
|
|
-
|
|
|
- public Void call() throws Exception {
|
|
|
- obj.initialize(SceneApplication.getApplication().getCamera().getLocation());
|
|
|
- return null;
|
|
|
- }
|
|
|
- });
|
|
|
|
|
|
// createFields(obj.getClass(), set, obj);
|
|
|
|