2
0
ShiroSmith 7 жил өмнө
parent
commit
61f8d01e8f

+ 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();
 		}