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; }