void LandscapeEditorHeightmap::CreateUndoPoint()
{
	if (LandscapeTool::TOOL_COPYPASTE == currentTool->type)
		CreateCopyPasteUndo();
	else
		CreateHeightmapUndo();
}
void HeightmapEditorSystem::FinishEditing()
{
	if (editingIsEnabled)
	{
		CreateHeightmapUndo();
		editingIsEnabled = false;
	}
}
void LandscapeEditorHeightmap::TextureDidChanged(const String &forKey)
{
    if("property.landscape.texture.heightmap" == forKey)
    {
        savedPath = workingLandscape->GetHeightmapPathname();
        
        Heightmap *heightmap = landscapesController->GetCurrentHeightmap();
        landscapeSize = heightmap->Size();

		CreateHeightmapUndo();
    }
    else if("property.landscape.texture.tilemask" == forKey)
    {
        CreateTilemaskImage();
    }
}