Fix of bug that images don't load after reload sometimes (#2090)

Co-authored-by: Ylva Selling <ys5140@nyu.edu>
This commit is contained in:
Alexander Bock
2022-05-06 17:48:29 -04:00
committed by GitHub
parent 970536998a
commit b136a3a308
2 changed files with 6 additions and 3 deletions

View File

@@ -319,6 +319,9 @@ void ScreenSpaceSkyBrowser::update() {
updateTextureResolution();
_ratioIsDirty = false;
}
if (_shouldReload) {
_isInitialized = false;
}
WwtCommunicator::update();
ScreenSpaceRenderable::update();

View File

@@ -200,11 +200,11 @@ void WwtCommunicator::update() {
updateBorderColor();
_borderColorIsDirty = false;
}
if (_shouldReload) {
_isImageCollectionLoaded = false;
}
_lastUpdateTime = std::chrono::system_clock::now();
}
if (_shouldReload) {
_isImageCollectionLoaded = false;
}
Browser::update();
}