From a96e50d1be649a53f45fee3e4765daf55afcbe5a Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Mon, 31 Jul 2023 22:27:53 +1000 Subject: [PATCH 1/2] Call SetLightingGuid on tile static meshes. --- Source/CesiumRuntime/Private/CesiumGltfComponent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp b/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp index a71aabee6..a225a8704 100644 --- a/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp +++ b/Source/CesiumRuntime/Private/CesiumGltfComponent.cpp @@ -2134,6 +2134,7 @@ static void loadPrimitiveGameThreadPart( pStaticMesh->AddMaterial(pMaterial); + pStaticMesh->SetLightingGuid(); pStaticMesh->InitResources(); // Set up RenderData bounds and LOD data From d83e5eeff8887fe7b494444d97f1dac7d9284ced Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Mon, 31 Jul 2023 22:29:51 +1000 Subject: [PATCH 2/2] Update CHANGES.md. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index bd6c9d8f9..90f05e9c5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,6 +20,7 @@ - `ACesiumGeoreference`, `ACesiumCameraManager`, and `ACesiumCreditSystem` are now created in the Persistent Level, even if the object that triggered their automatic creation (such as `ACesium3DTileset`) exists in a sub-level. It is very rarely useful to have instances of these objects within a sub-level. - An instance of `ACesiumCreditSystem` in a sub-level will no longer cause overlapping and broken-looking credits. However, we still recommend deleting credit system instances from sub-levels. - Fixed a bug introduced in v1.28.0 that prevented point clouds from rendering with attenuation. +- Fixed a bug that caused `UnrealLightmass` to crash when attempting to build lighting containing static meshes created by a `Cesium3DTileset`. ### v1.28.0 - 2023-07-03