Skip to content

Commit a719f01

Browse files
authored
Merge pull request #569 from CesiumGS/update-multiple-views
Update for `multiple-views` changes in cesium-native
2 parents aea27da + 7b7b4ff commit a719f01

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
- Fixed a bug where credits would not display in the Game tab after entering Play Mode.
1212

13-
## v1.15.5
13+
## v1.15.5 - 2025-04-01
1414

1515
##### Fixes :wrench:
1616

native~/Runtime/src/Cesium3DTilesetImpl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ void Cesium3DTilesetImpl::Update(
133133
std::vector<ViewState> viewStates =
134134
CameraManager::getAllCameras(tileset, *this);
135135

136-
const ViewUpdateResult& updateResult = this->_pTileset->updateView(
136+
const ViewUpdateResult& updateResult = this->_pTileset->updateViewGroup(
137+
this->_pTileset->getDefaultViewGroup(),
137138
viewStates,
138139
DotNet::UnityEngine::Time::deltaTime());
140+
this->_pTileset->loadTiles();
141+
139142
this->updateLastViewUpdateResultState(tileset, updateResult);
140143

141144
for (auto pTile : updateResult.tilesFadingOut) {

native~/Runtime/src/CesiumCreditSystemImpl.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ void CesiumCreditSystemImpl::UpdateCredits(
5151
this->_creditsUpdated = false;
5252
}
5353

54+
const CesiumUtility::CreditsSnapshot& credits = _pCreditSystem->getSnapshot();
5455
const std::vector<CesiumUtility::Credit>& creditsToShowThisFrame =
55-
this->_pCreditSystem->getCreditsToShowThisFrame();
56+
credits.currentCredits;
57+
5658
size_t creditsCount = creditsToShowThisFrame.size();
57-
this->_creditsUpdated =
58-
forceUpdate || creditsCount != this->_lastCreditsCount ||
59-
this->_pCreditSystem->getCreditsToNoLongerShowThisFrame().size() > 0;
59+
this->_creditsUpdated = forceUpdate ||
60+
creditsToShowThisFrame.size() != _lastCreditsCount ||
61+
credits.removedCredits.size() > 0;
6062

6163
if (this->_creditsUpdated) {
6264
List1<CesiumForUnity::CesiumCredit> popupCredits =
@@ -95,8 +97,6 @@ void CesiumCreditSystemImpl::UpdateCredits(
9597
this->_creditsUpdated = true;
9698
this->_lastCreditsCount = creditsCount;
9799
}
98-
99-
this->_pCreditSystem->startNextFrame();
100100
}
101101

102102
namespace {

native~/extern/cesium-native

Submodule cesium-native updated 60 files

0 commit comments

Comments
 (0)