Removed blank spaces

This commit is contained in:
Axel 2023-04-14 11:11:49 +02:00 committed by bernat
parent 13358263c6
commit 355c47f7ac
2 changed files with 2 additions and 3 deletions

View File

@ -404,7 +404,6 @@ AActor* UUSDImporterWidget::GenerateNewVehicleBlueprint(
UE_LOG(LogCarlaTools, Log, TEXT("Num Lights %d"), VehicleMeshes.Lights.Num());
for (const FVehicleLight& Light : VehicleMeshes.Lights)
{
UPointLightComponent* PointLightComponent = NewObject<UPointLightComponent>(TemplateActor, FName(*GetCarlaLightName(Light.Name)));
PointLightComponent->RegisterComponent();
PointLightComponent->AttachToComponent(TemplateActor->GetRootComponent(), FAttachmentTransformRules::KeepRelativeTransform);

View File

@ -30,7 +30,7 @@ TArray<FUSDCARLALight> UUSDCARLAInterface::GetUSDLights(const FString& Path)
{
pxr::UsdLuxLight Light(LightPrim);
std::string StdName = LightPrim.GetName();
pxr::GfVec3f PxColor;
pxr::VtValue vtValue;
if (Light.GetColorAttr().Get(&vtValue)) {
@ -39,7 +39,7 @@ TArray<FUSDCARLALight> UUSDCARLAInterface::GetUSDLights(const FString& Path)
pxr::UsdGeomXformCache Cache;
pxr::GfMatrix4d Transform = Cache.GetLocalToWorldTransform(LightPrim);
pxr::GfVec3d PxLocation = Transform.ExtractTranslation();
FString Name(StdName.size(), UTF8_TO_TCHAR(StdName.c_str()));
FLinearColor Color(PxColor[0], PxColor[1], PxColor[2]);
FVector Location(PxLocation[0], -PxLocation[1], PxLocation[2]);