mirror of
https://github.com/overte-org/overte.git
synced 2025-06-20 09:40:00 +02:00
fix premature octree query before preferences are loaded
This commit is contained in:
parent
347293a6a4
commit
bcdff7ba4a
2 changed files with 8 additions and 0 deletions
|
@ -2653,6 +2653,8 @@ void Application::loadSettings() {
|
||||||
|
|
||||||
Menu::getInstance()->loadSettings();
|
Menu::getInstance()->loadSettings();
|
||||||
getMyAvatar()->loadData();
|
getMyAvatar()->loadData();
|
||||||
|
|
||||||
|
_settingsLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::saveSettings() {
|
void Application::saveSettings() {
|
||||||
|
@ -3276,6 +3278,10 @@ int Application::sendNackPackets() {
|
||||||
|
|
||||||
void Application::queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions) {
|
void Application::queryOctree(NodeType_t serverType, PacketType packetType, NodeToJurisdictionMap& jurisdictions) {
|
||||||
|
|
||||||
|
if (!_settingsLoaded) {
|
||||||
|
return; // bail early if settings are not loaded
|
||||||
|
}
|
||||||
|
|
||||||
//qCDebug(interfaceapp) << ">>> inside... queryOctree()... _viewFrustum.getFieldOfView()=" << _viewFrustum.getFieldOfView();
|
//qCDebug(interfaceapp) << ">>> inside... queryOctree()... _viewFrustum.getFieldOfView()=" << _viewFrustum.getFieldOfView();
|
||||||
bool wantExtraDebugging = getLogger()->extraDebugging();
|
bool wantExtraDebugging = getLogger()->extraDebugging();
|
||||||
|
|
||||||
|
|
|
@ -510,6 +510,8 @@ private:
|
||||||
bool _reticleClickPressed { false };
|
bool _reticleClickPressed { false };
|
||||||
|
|
||||||
int _avatarAttachmentRequest = 0;
|
int _avatarAttachmentRequest = 0;
|
||||||
|
|
||||||
|
bool _settingsLoaded { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_Application_h
|
#endif // hifi_Application_h
|
||||||
|
|
Loading…
Reference in a new issue