Clear terrain painting when applying presets (fix #6)

This fixes the bug where painted heightmap was not cleared
on new scene.
This commit is contained in:
Michaël Lemaire 2013-06-27 17:11:37 +02:00
parent 71d0eaacd0
commit 651e3fc3b6

View file

@ -26,5 +26,7 @@ void terrainAutoPreset(TerrainDefinition* definition, TerrainPreset preset)
; ;
} }
terrainClearPainting(definition->height_map);
TerrainDefinitionClass.validate(definition); TerrainDefinitionClass.validate(definition);
} }