mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +02:00
Merge pull request #6865 from ZappoMan/fixPrematureQuery
fix premature octree query before preferences are loaded
This commit is contained in:
commit
730640068c
2 changed files with 8 additions and 0 deletions
|
@ -2653,6 +2653,8 @@ void Application::loadSettings() {
|
|||
|
||||
Menu::getInstance()->loadSettings();
|
||||
getMyAvatar()->loadData();
|
||||
|
||||
_settingsLoaded = true;
|
||||
}
|
||||
|
||||
void Application::saveSettings() {
|
||||
|
@ -3276,6 +3278,10 @@ int Application::sendNackPackets() {
|
|||
|
||||
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();
|
||||
bool wantExtraDebugging = getLogger()->extraDebugging();
|
||||
|
||||
|
|
|
@ -510,6 +510,8 @@ private:
|
|||
bool _reticleClickPressed { false };
|
||||
|
||||
int _avatarAttachmentRequest = 0;
|
||||
|
||||
bool _settingsLoaded { false };
|
||||
};
|
||||
|
||||
#endif // hifi_Application_h
|
||||
|
|
Loading…
Reference in a new issue