From d7630418f82c352c283cb230ee1b930aab53477e Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Tue, 1 Feb 2022 23:38:00 +1100 Subject: [PATCH 1/2] Restore old cache dir on Android. --- Source/CesiumRuntime/Private/Cesium3DTileset.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/CesiumRuntime/Private/Cesium3DTileset.cpp b/Source/CesiumRuntime/Private/Cesium3DTileset.cpp index 8968f1097..277eed774 100644 --- a/Source/CesiumRuntime/Private/Cesium3DTileset.cpp +++ b/Source/CesiumRuntime/Private/Cesium3DTileset.cpp @@ -723,7 +723,9 @@ class UnrealResourcePreparer }; static std::string getCacheDatabaseName() { -#if PLATFORM_ANDROID || PLATFORM_IOS +#if PLATFORM_ANDROID + FString BaseDirectory = FPaths::ProjectPersistentDownloadDir(); +#elif PLATFORM_IOS FString BaseDirectory = FPaths::Combine(*FPaths::ProjectSavedDir(), TEXT("Cesium")); if (!IFileManager::Get().DirectoryExists(*BaseDirectory)) { From a268c625a14998976131ef39de50962364ee62a3 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Tue, 1 Feb 2022 23:40:44 +1100 Subject: [PATCH 2/2] Bump version. --- CHANGES.md | 6 ++++++ CesiumForUnreal.uplugin | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8b6295963..ea4275d7c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # Change Log +### v1.10.1 - 2022-02-01 + +##### Fixes :wrench: + +- Fixed a crash at startup on Android devices introduced in v1.10.0. + ### v1.10.0 - 2022-02-01 ##### Breaking Changes :mega: diff --git a/CesiumForUnreal.uplugin b/CesiumForUnreal.uplugin index c795e2df9..3ce079675 100644 --- a/CesiumForUnreal.uplugin +++ b/CesiumForUnreal.uplugin @@ -1,7 +1,7 @@ { "FileVersion": 3, - "Version": 20, - "VersionName": "1.10.0", + "Version": 21, + "VersionName": "1.10.1", "FriendlyName": "Cesium for Unreal", "Description": "Unlock the 3D geospatial ecosystem in Unreal Engine with real-world 3D content and a high accuracy full-scale WGS84 globe.", "Category": "Geospatial", diff --git a/package.json b/package.json index 830a2311a..3631f7b5d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cesium-unreal", - "version": "1.10.0", + "version": "1.10.1", "description": "Cesium for Unreal", "main": "index.js", "directories": {