Fixed BP_Sky name overlap issue

This commit is contained in:
doterop 2020-11-19 16:11:35 +01:00 committed by bernat
parent 1d482fa9cf
commit 7e42db5ab2
1 changed files with 3 additions and 2 deletions

View File

@ -43,8 +43,9 @@ void UObjectRegister::RegisterObjects(TArray<AActor*> Actors)
{
const FString ActorName = Actor->GetName();
// Discard Sky to not broke the global ilumination
if(ActorName.Contains("BP_Sky")) continue;
FString ClassName = Actor->GetClass()->GetName();
// Discard Sky to not break the global ilumination
if(ClassName.Equals("BP_Sky_C")) continue;
ACarlaWheeledVehicle* Vehicle = Cast<ACarlaWheeledVehicle>(Actor);
if (Vehicle)