8
8
#include " CesiumEditor.h"
9
9
#include " CesiumIonRasterOverlay.h"
10
10
#include " CesiumIonServerSelector.h"
11
+ #include " CesiumRuntime.h"
11
12
#include " Editor.h"
12
13
#include " EditorModeManager.h"
13
14
#include " EngineUtils.h"
@@ -121,7 +122,7 @@ void CesiumIonPanel::Construct(const FArguments& InArgs) {
121
122
.Text (FText::FromString (TEXT (" Refresh" )))
122
123
.ToolTipText (FText::FromString (TEXT (" Refresh the asset list" )))
123
124
.OnClicked_Lambda ([this ]() {
124
- FCesiumEditorModule::ion ().refreshAssets ();
125
+ FCesiumEditorModule::serverManager ().GetCurrentSession ()-> refreshAssets ();
125
126
Refresh ();
126
127
return FReply::Handled ();
127
128
})
@@ -154,7 +155,7 @@ void CesiumIonPanel::Construct(const FArguments& InArgs) {
154
155
];
155
156
// clang-format on
156
157
157
- FCesiumEditorModule::ion ().refreshAssets ();
158
+ FCesiumEditorModule::serverManager ().GetCurrentSession ()-> refreshAssets ();
158
159
}
159
160
160
161
void CesiumIonPanel::OnSortChange (
@@ -400,7 +401,8 @@ void CesiumIonPanel::ApplySorting() {
400
401
}
401
402
402
403
void CesiumIonPanel::Refresh () {
403
- const Assets& assets = FCesiumEditorModule::ion ().getAssets ();
404
+ const Assets& assets =
405
+ FCesiumEditorModule::serverManager ().GetCurrentSession ()->getAssets ();
404
406
405
407
this ->_assets .SetNum (assets.items .size ());
406
408
@@ -416,7 +418,7 @@ void CesiumIonPanel::Tick(
416
418
const FGeometry& AllottedGeometry,
417
419
const double InCurrentTime,
418
420
const float InDeltaTime) {
419
- FCesiumEditorModule::ion (). getAsyncSystem ().dispatchMainThreadTasks ();
421
+ getAsyncSystem ().dispatchMainThreadTasks ();
420
422
SCompoundWidget::Tick (AllottedGeometry, InCurrentTime, InDeltaTime);
421
423
}
422
424
0 commit comments