From 4f9177017f68a4ab3c35598706f293c55eb11937 Mon Sep 17 00:00:00 2001 From: Sean Lilley Date: Tue, 13 Feb 2024 13:45:10 -0500 Subject: [PATCH] Resume ion session on reload --- CHANGES.md | 1 + src/core/src/OmniIonServer.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e9019add..3dcfbd1a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ * Fixed crash when updating tilesets shader inputs. * Fixed crash when setting certain `/Cesium` debug options at runtime. * Fixed crash when disabling and re-enabling the extension. +* Fixed issue where Cesium ion session would not resume on reload. ### v0.17.0 - 2024-02-01 diff --git a/src/core/src/OmniIonServer.cpp b/src/core/src/OmniIonServer.cpp index 47a4b06a..70c07be8 100644 --- a/src/core/src/OmniIonServer.cpp +++ b/src/core/src/OmniIonServer.cpp @@ -17,7 +17,9 @@ OmniIonServer::OmniIonServer(Context* pContext, const pxr::SdfPath& path) pContext->getHttpAssetAccessor(), getIonServerUrl(), getIonServerApiUrl(), - getIonServerApplicationId())) {} + getIonServerApplicationId())) { + _session->resume(); +} const pxr::SdfPath& OmniIonServer::getPath() const { return _path;