OnActorSpawned condition fixed
This commit is contained in:
parent
3a8c7a8097
commit
744d928142
|
@ -36,8 +36,8 @@ void UCarlaSettingsDelegate::OnActorSpawned(AActor* InActor)
|
|||
{
|
||||
check(CarlaSettings!=nullptr);
|
||||
if (InActor != nullptr && IsValid(InActor) && !InActor->IsPendingKill() &&
|
||||
InActor->IsA<AInstancedFoliageActor>() || //foliage culling is controlled per instance
|
||||
InActor->IsA<ALandscape>() || //dont touch landscapes nor roads
|
||||
!InActor->IsA<AInstancedFoliageActor>() && //foliage culling is controlled per instance
|
||||
!InActor->IsA<ALandscape>() && //dont touch landscapes nor roads
|
||||
!InActor->ActorHasTag(UCarlaSettings::CARLA_ROAD_TAG) &&
|
||||
!InActor->ActorHasTag(UCarlaSettings::CARLA_SKY_TAG)
|
||||
){
|
||||
|
|
Loading…
Reference in New Issue