From b160c407e460324092dc4de2e77727334f18e05f Mon Sep 17 00:00:00 2001 From: Wouter Jansen Date: Mon, 25 Nov 2024 11:26:43 +0100 Subject: [PATCH] Fixed errors related to Unreal 5.5 upgrade --- .../AirSim/Source/Annotation/AnnotationComponent.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Unreal/Plugins/AirSim/Source/Annotation/AnnotationComponent.cpp b/Unreal/Plugins/AirSim/Source/Annotation/AnnotationComponent.cpp index 112134e9..5f5e00a7 100644 --- a/Unreal/Plugins/AirSim/Source/Annotation/AnnotationComponent.cpp +++ b/Unreal/Plugins/AirSim/Source/Annotation/AnnotationComponent.cpp @@ -6,8 +6,8 @@ // Overwrite the material #include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h" -#include "Runtime/Engine/Classes/Materials/Material.h" -#include "Runtime/Engine/Classes/Materials/MaterialInstanceDynamic.h" +#include "Runtime/Engine/Public/Materials/Material.h" +#include "Runtime/Engine/Public/Materials/MaterialInstanceDynamic.h" #include "Runtime/Engine/Classes/Engine/StaticMesh.h" #include "Runtime/Engine/Classes/Components/SkeletalMeshComponent.h" #include "Runtime/Launch/Resources/Version.h" @@ -443,6 +443,9 @@ FBoxSphereBounds UAnnotationComponent::CalcBounds(const FTransform & LocalToWorl } FBoxSphereBounds DefaultBounds; + DefaultBounds.Origin = LocalToWorld.GetLocation(); + DefaultBounds.BoxExtent = FVector::ZeroVector; + DefaultBounds.SphereRadius = 0.f; return DefaultBounds; }