File tree 3 files changed +11
-8
lines changed 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,12 @@ void Cesium3DTilesetImpl::Update(
133
133
std::vector<ViewState> viewStates =
134
134
CameraManager::getAllCameras (tileset, *this );
135
135
136
- const ViewUpdateResult& updateResult = this ->_pTileset ->updateView (
136
+ const ViewUpdateResult& updateResult = this ->_pTileset ->updateViewGroup (
137
+ this ->_pTileset ->getDefaultViewGroup (),
137
138
viewStates,
138
139
DotNet::UnityEngine::Time::deltaTime ());
140
+ this ->_pTileset ->loadTiles ();
141
+
139
142
this ->updateLastViewUpdateResultState (tileset, updateResult);
140
143
141
144
for (auto pTile : updateResult.tilesFadingOut ) {
Original file line number Diff line number Diff line change @@ -51,12 +51,14 @@ void CesiumCreditSystemImpl::UpdateCredits(
51
51
this ->_creditsUpdated = false ;
52
52
}
53
53
54
+ const CesiumUtility::CreditsSnapshot& credits = _pCreditSystem->getSnapshot ();
54
55
const std::vector<CesiumUtility::Credit>& creditsToShowThisFrame =
55
- this ->_pCreditSystem ->getCreditsToShowThisFrame ();
56
+ credits.currentCredits ;
57
+
56
58
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 ;
60
62
61
63
if (this ->_creditsUpdated ) {
62
64
List1<CesiumForUnity::CesiumCredit> popupCredits =
@@ -95,8 +97,6 @@ void CesiumCreditSystemImpl::UpdateCredits(
95
97
this ->_creditsUpdated = true ;
96
98
this ->_lastCreditsCount = creditsCount;
97
99
}
98
-
99
- this ->_pCreditSystem ->startNextFrame ();
100
100
}
101
101
102
102
namespace {
You can’t perform that action at this time.
0 commit comments