Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Dec 21, 2023
1 parent b86538c commit 7eef81f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
13 changes: 6 additions & 7 deletions Source/CesiumRuntime/Private/CesiumSubLevelSwitcherComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ void UCesiumSubLevelSwitcherComponent::TickComponent(
if (pSubLevel == this->_pCurrent || pSubLevel == this->_pTarget)
continue;


ULevelStreaming* pStreaming =
this->_getLevelStreamingForSubLevel(pSubLevel);
StreamState state =
Expand Down Expand Up @@ -213,10 +212,10 @@ void UCesiumSubLevelSwitcherComponent::_updateSubLevelStateGame() {
if (IsValid(pStreaming)) {
#if ENGINE_VERSION_5_3_OR_HIGHER
state = pStreaming->GetLevelStreamingState();
#else
#else
state = pStreaming->GetCurrentState();
#endif
#endif

} else if (this->_pCurrent->GetWorldAsset().IsNull()) {
// There is no level associated with the target at all, so mark it
// unloaded but also deactivate it for the benefit of the Editor UI.
Expand Down Expand Up @@ -278,12 +277,12 @@ void UCesiumSubLevelSwitcherComponent::_updateSubLevelStateGame() {

StreamState state = StreamState::Unloaded;
if (IsValid(pStreaming)) {
#if ENGINE_VERSION_5_3_OR_HIGHER
#if ENGINE_VERSION_5_3_OR_HIGHER
state = pStreaming->GetLevelStreamingState();
#else
#else

state = pStreaming->GetCurrentState();
#endif
#endif
} else if (this->_pTarget.Get()->GetWorldAsset().IsNull()) {
// There is no level associated with the target at all, so mark it failed
// to load because this is as loaded as it will ever be.
Expand Down
11 changes: 6 additions & 5 deletions Source/CesiumRuntime/Private/CesiumTextureUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,12 +889,13 @@ UTexture2D* loadTextureGameThreadPart(LoadedTextureResult* pHalfLoadedTexture) {
([pTexture, pCesiumTextureResource](FRHICommandListImmediate& RHICmdList) {
pCesiumTextureResource->SetTextureReference(
pTexture->TextureReference.TextureReferenceRHI);
#if ENGINE_VERSION_5_3_OR_HIGHER
pCesiumTextureResource->InitResource(FRHICommandListImmediate::Get()); //Init Resource now requires a command list.
#else
#if ENGINE_VERSION_5_3_OR_HIGHER
pCesiumTextureResource->InitResource(
FRHICommandListImmediate::Get()); // Init Resource now requires a
// command list.
#else
pCesiumTextureResource->InitResource();
#endif

#endif
});

return pTexture;
Expand Down

0 comments on commit 7eef81f

Please sign in to comment.