Removed blank spaces
This commit is contained in:
parent
13358263c6
commit
355c47f7ac
|
@ -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);
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue