Jump to content

2.19 IG Aviation TerrainSurfaceSettings missing landscape mask fetch


photo

Recommended Posts

Posted

Hi,

In 2.19 (maybe since 2.18?), the addon IG Aviation/TerrainSurfaceSettings is missing the query of the landscape mask. (was in line 53 of TerrainSurfaceSettings.cpp)

...
		for (auto &it : landscape_info)
		{
			float v = landscape_fetch->getMask(it.mask); // find the most intense mask
			if (v > max_value)
			{
				if (ret_info)
				{
					ret_info->normal = landscape_fetch->getNormal();
					ret_info->point = pos;
					ret_info->point.z = landscape_fetch->getHeight();
					ret_info->object = landscape;
					//ret_info->landscape_mask = it.mask; // NO LONGER HERE in 2.19 code...
				}
				max_value = v;
				ret = it.type;
			}
		}
...

How can we retrieve this back?

×
×
  • Create New...