From 962d4b2bdbfe84d7f93e7255c9bdc44995b7e60b Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Tue, 17 Oct 2023 09:24:30 +1100 Subject: [PATCH] result -> pResult --- .../CesiumRuntime/Private/Cesium3DTileset.cpp | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Source/CesiumRuntime/Private/Cesium3DTileset.cpp b/Source/CesiumRuntime/Private/Cesium3DTileset.cpp index 8eae33fd8..cd64188f4 100644 --- a/Source/CesiumRuntime/Private/Cesium3DTileset.cpp +++ b/Source/CesiumRuntime/Private/Cesium3DTileset.cpp @@ -2077,25 +2077,25 @@ void ACesium3DTileset::Tick(float DeltaTime) { CreateViewStateFromViewParameters(camera, unrealWorldToCesiumTileset)); } - const Cesium3DTilesSelection::ViewUpdateResult* result; + const Cesium3DTilesSelection::ViewUpdateResult* pResult; if (this->_captureMovieMode) { TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::updateViewOffline) - result = &this->_pTileset->updateViewOffline(frustums); + pResult = &this->_pTileset->updateViewOffline(frustums); } else { TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::updateView) - result = &this->_pTileset->updateView(frustums, DeltaTime); + pResult = &this->_pTileset->updateView(frustums, DeltaTime); } - updateLastViewUpdateResultState(*result); + updateLastViewUpdateResultState(*pResult); - removeCollisionForTiles(result->tilesFadingOut); + removeCollisionForTiles(pResult->tilesFadingOut); removeVisibleTilesFromList( _tilesToHideNextFrame, - result->tilesToRenderThisFrame); + pResult->tilesToRenderThisFrame); hideTiles(_tilesToHideNextFrame); _tilesToHideNextFrame.clear(); - for (Cesium3DTilesSelection::Tile* pTile : result->tilesFadingOut) { + for (Cesium3DTilesSelection::Tile* pTile : pResult->tilesFadingOut) { Cesium3DTilesSelection::TileRenderContent* pRenderContent = pTile->getContent().getRenderContent(); if (!this->UseLodTransitions || @@ -2105,16 +2105,17 @@ void ACesium3DTileset::Tick(float DeltaTime) { } } - showTilesToRender(result->tilesToRenderThisFrame); + showTilesToRender(pResult->tilesToRenderThisFrame); if (this->UseLodTransitions) { TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::UpdateTileFades) - for (Cesium3DTilesSelection::Tile* pTile : result->tilesToRenderThisFrame) { + for (Cesium3DTilesSelection::Tile* pTile : + pResult->tilesToRenderThisFrame) { updateTileFade(pTile, true); } - for (Cesium3DTilesSelection::Tile* pTile : result->tilesFadingOut) { + for (Cesium3DTilesSelection::Tile* pTile : pResult->tilesFadingOut) { updateTileFade(pTile, false); } }