mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-02 01:30:34 -06:00
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:
@@ -319,6 +319,9 @@ void ScreenSpaceSkyBrowser::update() {
|
||||
updateTextureResolution();
|
||||
_ratioIsDirty = false;
|
||||
}
|
||||
if (_shouldReload) {
|
||||
_isInitialized = false;
|
||||
}
|
||||
|
||||
WwtCommunicator::update();
|
||||
ScreenSpaceRenderable::update();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user