|
|
@ -64,6 +64,13 @@ public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene |
|
|
|
this.geom = spatial; |
|
|
|
this.geom = spatial; |
|
|
|
setName(spatial.getName()); |
|
|
|
setName(spatial.getName()); |
|
|
|
geom.addListener("GuiListener", this); |
|
|
|
geom.addListener("GuiListener", this); |
|
|
|
|
|
|
|
SceneApplication.getApplication().enqueue(new Callable<Void>() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Void call() throws Exception { |
|
|
|
|
|
|
|
geom.initialize(SceneApplication.getApplication().getCamera().getLocation()); |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -86,13 +93,6 @@ public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListene |
|
|
|
if (obj == null) { |
|
|
|
if (obj == null) { |
|
|
|
return sheet; |
|
|
|
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);
|
|
|
|
// createFields(obj.getClass(), set, obj);
|
|
|
|
|
|
|
|
|
|
|
|