| 304 | } |
| 305 | |
| 306 | bool TerrainTools::InitializePatch(Terrain* terrain, const Int2& patchCoord) |
| 307 | { |
| 308 | CHECK_RETURN(terrain, true); |
| 309 | auto patch = terrain->GetPatch(patchCoord); |
| 310 | CHECK_RETURN(patch, true); |
| 311 | return patch->InitializeHeightMap(); |
| 312 | } |
| 313 | |
| 314 | bool TerrainTools::ModifyHeightMap(Terrain* terrain, const Int2& patchCoord, const float* samples, const Int2& offset, const Int2& size) |
| 315 | { |
no test coverage detected