Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into 1544-polygon-soft-ref…
Browse files Browse the repository at this point in the history
…erence
  • Loading branch information
kring committed Nov 21, 2024
2 parents 99b62d1 + 2c06e31 commit bd53b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Change Log

### Not Released Yet
### ? - 2024-12-02

##### Fixes :wrench:

- Fixed a crash that could occur when using `SampleHeightMostDetailed` on a `Cesium3DTileset` with a raster overlay.
- `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
Expand Down
6 changes: 6 additions & 0 deletions Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ void ACesium3DTileset::SetMobility(EComponentMobility::Type NewMobility) {
void ACesium3DTileset::SampleHeightMostDetailed(
const TArray<FVector>& LongitudeLatitudeHeightArray,
FCesiumSampleHeightMostDetailedCallback OnHeightsSampled) {
// It's possible to call this function before a Tick happens, so make sure
// that the necessary variables are resolved.
this->ResolveGeoreference();
this->ResolveCameraManager();
this->ResolveCreditSystem();

if (this->_pTileset == nullptr) {
this->LoadTileset();
}
Expand Down

0 comments on commit bd53b01

Please sign in to comment.