* fixed terrainGrid NPE on executor

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7825 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..ns 14 years ago
parent 1a72ca91b1
commit db83e48019
  1. 2
      engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java

@ -239,6 +239,8 @@ public class TerrainGrid extends TerrainQuad {
if (q1 == null || q2 == null || q3 == null || q4 == null) {
try {
if (executor == null)
executor = createExecutorService();
executor.submit(new UpdateQuadCache(cam, true)).get();
q1 = cache.get(cam.add(quadIndex[5]));
q2 = cache.get(cam.add(quadIndex[6]));

Loading…
Cancel
Save