From 8aa2cffda57dd823f5bf60497455cedf0dbe3dea Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Tue, 29 Oct 2024 16:20:37 +1100 Subject: [PATCH 1/2] Initialize fields in FCesiumSampleHeightResult. --- CHANGES.md | 1 + Source/CesiumRuntime/Public/CesiumSampleHeightResult.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index e7a58d762..ebdda7f64 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ - Fixed a bug that caused incorrect lighting for tilesets using `KHR_materials_unlit`. - Reduced the memory used by tiles with `KHR_materials_unlit`. - `CesiumGlobeAnchor` properties are no longer shown on the main `CesiumSunSky` Details panel, because it is almost never necessary to set these. They can still be set on the component's own Details panel if needed. +- Fixed error messages in the Unreal log about uninitialized fields in `FCesiumSampleHeightResult`. ### v2.9.0 - 2024-10-01 diff --git a/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h b/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h index 364678cd5..f9ab79399 100644 --- a/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h +++ b/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h @@ -19,7 +19,7 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult { * is false. */ UPROPERTY(BlueprintReadWrite, Category = "Cesium") - FVector LongitudeLatitudeHeight; + FVector LongitudeLatitudeHeight{0.0, 0.0, 0.0}; /** * True if the height as sampled from the tileset successfully. False if the @@ -28,5 +28,5 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult { * will have more information about the problem. */ UPROPERTY(BlueprintReadWrite, Category = "Cesium") - bool SampleSuccess; + bool SampleSuccess{false}; }; From 6eb4718d3a7b4cb31e8d93094b7303991b59a5e2 Mon Sep 17 00:00:00 2001 From: Janine Liu Date: Thu, 31 Oct 2024 13:32:41 -0400 Subject: [PATCH 2/2] {} -> = --- Source/CesiumRuntime/Public/CesiumSampleHeightResult.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h b/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h index f9ab79399..27b0265f1 100644 --- a/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h +++ b/Source/CesiumRuntime/Public/CesiumSampleHeightResult.h @@ -19,7 +19,7 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult { * is false. */ UPROPERTY(BlueprintReadWrite, Category = "Cesium") - FVector LongitudeLatitudeHeight{0.0, 0.0, 0.0}; + FVector LongitudeLatitudeHeight = {0.0, 0.0, 0.0}; /** * True if the height as sampled from the tileset successfully. False if the @@ -28,5 +28,5 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult { * will have more information about the problem. */ UPROPERTY(BlueprintReadWrite, Category = "Cesium") - bool SampleSuccess{false}; + bool SampleSuccess = false; };