ShiroSmith 7 éve
szülő
commit
61f8d01e8f
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      h3d/scene/pbr/terrain/Tile.hx

+ 2 - 0
h3d/scene/pbr/terrain/Tile.hx

@@ -96,6 +96,7 @@ class Tile extends h3d.scene.Mesh {
 				getTerrain().copyPass.apply(oldHeightMap, heightMap);
 				oldHeightMap.dispose();
 			}
+			needNewPixelCapture = true;
 		}
 
 		if(surfaceIndexMap == null || surfaceIndexMap.width != getTerrain().weightMapResolution){
@@ -119,6 +120,7 @@ class Tile extends h3d.scene.Mesh {
 					getTerrain().copyPass.apply(oldArray[i], surfaceWeights[i]);
 			}
 			generateWeightArray();
+
 			for(i in 0 ... oldArray.length)
 				if( oldArray[i] != null) oldArray[i].dispose();
 		}