From 5775916f8aed7a9a3c9b0181c2bc4ee73713975e Mon Sep 17 00:00:00 2001 From: Kieran Coppins Date: Mon, 11 Nov 2024 17:06:07 +0000 Subject: [PATCH 1/2] Use a soft object reference for cartographic polygons --- Source/CesiumRuntime/Private/CesiumPolygonRasterOverlay.cpp | 2 +- Source/CesiumRuntime/Public/CesiumPolygonRasterOverlay.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CesiumRuntime/Private/CesiumPolygonRasterOverlay.cpp b/Source/CesiumRuntime/Private/CesiumPolygonRasterOverlay.cpp index 66a465a45..3f8a7ba6d 100644 --- a/Source/CesiumRuntime/Private/CesiumPolygonRasterOverlay.cpp +++ b/Source/CesiumRuntime/Private/CesiumPolygonRasterOverlay.cpp @@ -28,7 +28,7 @@ UCesiumPolygonRasterOverlay::CreateOverlay( std::vector polygons; polygons.reserve(this->Polygons.Num()); - for (ACesiumCartographicPolygon* pPolygon : this->Polygons) { + for (auto& pPolygon : this->Polygons) { if (!pPolygon) { continue; } diff --git a/Source/CesiumRuntime/Public/CesiumPolygonRasterOverlay.h b/Source/CesiumRuntime/Public/CesiumPolygonRasterOverlay.h index abf154bb8..728ecc231 100644 --- a/Source/CesiumRuntime/Public/CesiumPolygonRasterOverlay.h +++ b/Source/CesiumRuntime/Public/CesiumPolygonRasterOverlay.h @@ -29,7 +29,7 @@ class CESIUMRUNTIME_API UCesiumPolygonRasterOverlay * The polygons to rasterize for this overlay. */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium") - TArray Polygons; + TArray> Polygons; /** * Whether to invert the selection specified by the polygons. From 99b62d17af69d885e4a1af10ab1b43534c82f493 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Thu, 21 Nov 2024 20:43:30 +1100 Subject: [PATCH 2/2] Update CHANGES.md. --- CHANGES.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 2ee999333..92999a7ef 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # Change Log +### Not Released Yet + +##### Fixes :wrench: + +- `CesiumPolygonRasterOverlay` now references `CesiumCartographicPolygon` instances using `TSoftObjectPtr`, which allows, for example, a raster overlay in the persistent level to use a polygon in a sub-level. + ### v2.10.0 - 2024-11-01 ##### Additions :tada: