Skip to content

Commit

Permalink
Initialize fields in FCesiumSampleHeightResult.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 29, 2024
1 parent d2a6e7e commit 8aa2cff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions Source/CesiumRuntime/Public/CesiumSampleHeightResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -28,5 +28,5 @@ struct CESIUMRUNTIME_API FCesiumSampleHeightResult {
* will have more information about the problem.
*/
UPROPERTY(BlueprintReadWrite, Category = "Cesium")
bool SampleSuccess;
bool SampleSuccess{false};
};

0 comments on commit 8aa2cff

Please sign in to comment.