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:
parent
5bf409765c
commit
d001e1b78c
|
@ -1351,9 +1351,11 @@ void UCustomTerrainPhysicsComponent::BeginPlay()
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
LargeMapManager = UCarlaStatics::GetLargeMapManager(GetWorld());
|
||||
TextureToUpdate = TexturesRes[ChosenRes];
|
||||
if( TexturesRes.Contains(ChosenRes) ){
|
||||
TextureToUpdate = TexturesRes[ChosenRes];
|
||||
}
|
||||
|
||||
{
|
||||
TRACE_CPUPROFILER_EVENT_SCOPE(InitializeDenseMap);
|
||||
SparseMap.Clear();
|
||||
|
|
Loading…
Reference in New Issue