Update scene document versions and refine terrain layer validation
This commit is contained in:
@@ -3059,7 +3059,10 @@ function validateTerrain(
|
||||
const expectedPaintWeightCount =
|
||||
terrain.sampleCountX *
|
||||
terrain.sampleCountZ *
|
||||
getTerrainStoredPaintWeightCount(terrain.layers.length);
|
||||
(terrain.layers.length >= MIN_TERRAIN_LAYER_COUNT &&
|
||||
terrain.layers.length <= MAX_TERRAIN_LAYER_COUNT
|
||||
? getTerrainStoredPaintWeightCount(terrain.layers.length)
|
||||
: 0);
|
||||
|
||||
if (terrain.paintWeights.length !== expectedPaintWeightCount) {
|
||||
diagnostics.push(
|
||||
|
||||
Reference in New Issue
Block a user