Aaron/particlesheightmapfix (#5873)

* Added local frame option. Fixed inputs for NN

* Add Textures

* Changed texture to grayscale RGB and added check for 'air' particles

* Updated 2k and 4k textures enable parameter for select res texture for deformation

* Fix issue where trying to access TMap when loading

* Use contains functions instead of checking num of elemnts on tmap to make a secure access

Co-authored-by: Axel <axellopez92@outlook.com>
This commit is contained in:
Blyron 2022-10-26 10:08:33 +02:00 committed by GitHub
parent 5bf409765c
commit d001e1b78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1351,9 +1351,11 @@ void UCustomTerrainPhysicsComponent::BeginPlay()
return;
}
LargeMapManager = UCarlaStatics::GetLargeMapManager(GetWorld());
if( TexturesRes.Contains(ChosenRes) ){
TextureToUpdate = TexturesRes[ChosenRes];
}
{
TRACE_CPUPROFILER_EVENT_SCOPE(InitializeDenseMap);
SparseMap.Clear();