Fixed water height not resetting when creating new scene

This commit is contained in:
Michaël Lemaire 2015-08-20 23:11:07 +02:00
parent f19433457e
commit 13c8816f9e

View file

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