Fixed water height not resetting when creating new scene
This commit is contained in:
parent
f19433457e
commit
13c8816f9e
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,7 @@ TerrainDefinition::TerrainDefinition(DefinitionNode* parent):
|
|||
height_map = new TerrainHeightMap(this);
|
||||
addChild(height_map);
|
||||
|
||||
water_height = new FloatNode(this, "water_height", -0.3);
|
||||
water_height = new FloatNode(this, "water_height");
|
||||
|
||||
_height_noise = new NoiseGenerator;
|
||||
}
|
||||
|
@ -156,6 +156,8 @@ void TerrainDefinition::applyPreset(TerrainPreset preset)
|
|||
;
|
||||
}
|
||||
|
||||
water_height->setValue(-0.3);
|
||||
|
||||
height_map->clearPainting();
|
||||
validate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue