Commit b84bac9 1 parent be61321 commit b84bac9 Copy full SHA for b84bac9
File tree 1 file changed +4
-5
lines changed
Source/CesiumEditor/Private
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -457,9 +457,6 @@ SelectCesiumIonToken::UseOrCreate(std::shared_ptr<CesiumIonSession> pSession) {
457
457
if (response.value ) {
458
458
pSession->invalidateProjectDefaultTokenDetails ();
459
459
460
- const UCesiumRuntimeSettings* pSettings =
461
- GetDefault<UCesiumRuntimeSettings>();
462
-
463
460
UCesiumIonServer* pServer = pPanel->_pServer .Get ();
464
461
465
462
FScopedTransaction transaction (
@@ -475,7 +472,8 @@ SelectCesiumIonToken::UseOrCreate(std::shared_ptr<CesiumIonSession> pSession) {
475
472
UWorld* pWorld = GEditor->GetEditorWorldContext ().World ();
476
473
for (auto it = TActorIterator<ACesium3DTileset>(pWorld); it; ++it) {
477
474
if (it->GetTilesetSource () == ETilesetSource::FromCesiumIon &&
478
- it->GetIonAccessToken ().IsEmpty ()) {
475
+ it->GetIonAccessToken ().IsEmpty () &&
476
+ it->GetCesiumIonServer () == pServer) {
479
477
it->RefreshTileset ();
480
478
} else {
481
479
// Tileset itself does not need to be refreshed, but maybe some
@@ -484,7 +482,8 @@ SelectCesiumIonToken::UseOrCreate(std::shared_ptr<CesiumIonSession> pSession) {
484
482
it->GetComponents <UCesiumIonRasterOverlay>(rasterOverlays);
485
483
486
484
for (UCesiumIonRasterOverlay* pOverlay : rasterOverlays) {
487
- if (pOverlay->IonAccessToken .IsEmpty ()) {
485
+ if (pOverlay->IonAccessToken .IsEmpty () &&
486
+ pOverlay->CesiumIonServer == pServer) {
488
487
pOverlay->Refresh ();
489
488
}
490
489
}
You can’t perform that action at this time.
0 commit comments