Skip to content

Commit

Permalink
Fixed an issue where the TerrainPatchRenderer would not set the initi…
Browse files Browse the repository at this point in the history
…al terrain layer properly
  • Loading branch information
FilipAlg committed Jan 12, 2024
1 parent 3f70f0d commit 8daecfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AGXUnity/Rendering/TerrainPatchRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ protected override bool Initialize()
Debug.LogError( "Terrain Patch Renderer does not yet support MovableTerrain!", this );
return false;
}

foreach (var patch in gameObject.GetComponentsInChildren<TerrainMaterialPatch>() )
patch.GetInitialized();

var uTerr = GetComponent<Terrain>();
var td = uTerr.terrainData;

Expand Down

0 comments on commit 8daecfa

Please sign in to comment.