Landscape: prevent landscape heightmap rendering from being disabled when nanite showflag is disabled. We can use the heightmaps as fallback in this case.

This is required for water heightmap rendering as well since we do not want to enable nanite meshes for that yet due to the issue of seams on the borders of the components' nanite meshes.

#rb jonathan.bard

[CL 22403807 by roey borsteinas in ue5-main branch]
This commit is contained in:
roey borsteinas
2022-10-07 13:26:04 -04:00
parent b39ac3ad24
commit df687a4d9d

View File

@@ -1391,7 +1391,7 @@ FPrimitiveViewRelevance FLandscapeComponentSceneProxy::GetViewRelevance(const FS
}
#endif // !UE_BUILD_SHIPPING
if (bNaniteActive)
if (bNaniteActive && View->Family->EngineShowFlags.NaniteMeshes)
{
Result.bShadowRelevance = false;
Result.bVelocityRelevance = false;