Skip to content

Commit 194dce7

Browse files
authored
Merge pull request CesiumGS#1306 from CesiumGS/fix-select-token-unconnected
Fix "Select New Token" dialog when not connected to ion
2 parents 1fee319 + 45049e4 commit 194dce7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
##### Fixes :wrench:
1111

12+
- Fixed a bug in the "Select New Token" dialog that caused an error when trying to create a new token without being connected.
1213
- Fixed a bug where an EditCondition was not parsed correctly and caused Output Log window errors.
1314
- Removed query parameters from filepaths if present, as they are no longer ignored by Unreal. This fixes a bug where the URL would not load correctly in some cases.
1415
- Fixed a Tile Excluder bug that computed incorrect tile bounds, making tiles invisible when moving the tileset in the sample scene.

Source/CesiumEditor/Private/SelectCesiumIonToken.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ void SelectCesiumIonToken::Construct(const FArguments& InArgs) {
220220
this->_specifyToken.token =
221221
GetDefault<UCesiumRuntimeSettings>()->DefaultIonAccessToken;
222222
this->_tokenSource =
223-
GetDefault<UCesiumRuntimeSettings>()->DefaultIonAccessToken.IsEmpty()
223+
GetDefault<UCesiumRuntimeSettings>()->DefaultIonAccessToken.IsEmpty() &&
224+
FCesiumEditorModule::ion().isConnected()
224225
? TokenSource::Create
225226
: TokenSource::Specify;
226227

0 commit comments

Comments
 (0)