Skip to content

Commit

Permalink
UE4.22 to UE4.24 upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel1092 authored and bernatx committed Mar 20, 2020
1 parent de82275 commit 6ba4d68
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
UENUM(BlueprintType)
enum class EActorAttributeType : uint8
{
Null = 0, // Workarround for UE4.24 issue with enums
Bool = CARLA_ENUM_FROM_RPC(Bool) UMETA(DisplayName = "Bool"),
Int = CARLA_ENUM_FROM_RPC(Int) UMETA(DisplayName = "Integer"),
Float = CARLA_ENUM_FROM_RPC(Float) UMETA(DisplayName = "Float"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void FCarlaEngine::NotifyEndEpisode()
CurrentEpisode = nullptr;
}

void FCarlaEngine::OnPreTick(ELevelTick TickType, float DeltaSeconds)
void FCarlaEngine::OnPreTick(UWorld *, ELevelTick TickType, float DeltaSeconds)
{
if ((TickType == ELevelTick::LEVELTICK_All) && (CurrentEpisode != nullptr))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FCarlaEngine : private NonCopyable

private:

void OnPreTick(ELevelTick TickType, float DeltaSeconds);
void OnPreTick(UWorld *World, ELevelTick TickType, float DeltaSeconds);

void OnPostTick(UWorld *World, ELevelTick TickType, float DeltaSeconds);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void WritePixelsToBuffer_Vulkan(
check(IsInRenderingThread());
auto RenderResource =
static_cast<const FTextureRenderTarget2DResource *>(RenderTarget.Resource);
FTextureRHIParamRef Texture = RenderResource->GetRenderTargetTexture();
FTexture2DRHIRef Texture = RenderResource->GetRenderTargetTexture();
if (!Texture)
{
UE_LOG(LogCarla, Error, TEXT("FPixelReader: UTextureRenderTarget2D missing render target texture"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ ARssSensor::ARssSensor(const FObjectInitializer &ObjectInitializer)
MeshComp->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
MeshComp->bHiddenInGame = true;
MeshComp->CastShadow = false;
MeshComp->PostPhysicsComponentTick.bCanEverTick = false;
RootComponent = MeshComp;
}
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ namespace SceneCaptureSensor_local_ns {

ShowFlags.SetAmbientOcclusion(false);
ShowFlags.SetAntiAliasing(false);
ShowFlags.SetAtmosphericFog(false);
ShowFlags.SetVolumetricFog(false); // ShowFlags.SetAtmosphericFog(false);
// ShowFlags.SetAudioRadius(false);
// ShowFlags.SetBillboardSprites(false);
ShowFlags.SetBloom(false);
Expand Down Expand Up @@ -691,8 +691,8 @@ namespace SceneCaptureSensor_local_ns {
// ShowFlags.SetVertexColors(false);
// ShowFlags.SetVignette(false);
// ShowFlags.SetVisLog(false);
ShowFlags.SetVisualizeAdaptiveDOF(false);
ShowFlags.SetVisualizeBloom(false);
// ShowFlags.SetVisualizeAdaptiveDOF(false);
// ShowFlags.SetVisualizeBloom(false);
ShowFlags.SetVisualizeBuffer(false);
ShowFlags.SetVisualizeDistanceFieldAO(false);
ShowFlags.SetVisualizeDistanceFieldGI(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ ASensor::ASensor(const FObjectInitializer &ObjectInitializer)
Mesh->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
Mesh->bHiddenInGame = true;
Mesh->CastShadow = false;
Mesh->PostPhysicsComponentTick.bCanEverTick = false;
RootComponent = Mesh;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
UENUM(BlueprintType)
enum class EQualityLevel : uint8
{
Null = 0, // Workarround for UE4.24 issue with enums
Low = CARLA_ENUM_FROM_RPC(Low) UMETA(DisplayName = "Low"),
// Medium = CARLA_ENUM_FROM_RPC(Medium) UMETA(DisplayName = "Medium"),
// High = CARLA_ENUM_FROM_RPC(High) UMETA(DisplayName = "High"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class UBoxComponent;

UENUM(BlueprintType)
enum class ETrafficSignState : uint8 {
Null = 0, // Workarround for UE4.24 issue with enums
UNKNOWN = 0u UMETA(DisplayName = "UNKNOWN"),
TrafficLightRed = 1u UMETA(DisplayName = "Traffic Light - Red"),
TrafficLightYellow = 2u UMETA(DisplayName = "Traffic Light - Yellow"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
UENUM(BlueprintType)
enum class EAttachmentType : uint8
{
Null = 0, // Workarround for UE4.24 issue with enums
Rigid = CARLA_ENUM_FROM_RPC(Rigid) UMETA(DisplayName = "Rigid"),
SpringArm = CARLA_ENUM_FROM_RPC(SpringArm) UMETA(DisplayName = "SpringArm"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
UENUM(BlueprintType)
enum class EVehicleInputPriority : uint8
{
Null = 0, // Workarround for UE4.24 issue with enums
INVALID = 0u UMETA(Hidden),

Lowest UMETA(DisplayName = "Lowest Priority", ToolTip = "Use for debugging purposes only"),
Expand Down

0 comments on commit 6ba4d68

Please sign in to comment.