Moved it to OctreeQuery
Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 7 files). Show all
Unified · Split
| @@ -160,7 +160,7 @@ void PreferencesDialog::loadPreferences() { · 159 unmodified lines | ||
| 160 | 160 | |
| 161 | 161 | ui.avatarScaleSpin->setValue(myAvatar->getScale()); |
| 162 | 162 | |
| 163 | − ui.maxOctreePPSSpin->setValue(menuInstance->getMaxOctreePacketsPerSecond()); | |
| 163 | + ui.maxOctreePPSSpin->setValue(qApp->getOctreeQuery().getMaxOctreePacketsPerSecond()); | |
| 164 | 164 | |
| 165 | 165 | ui.oculusUIAngularSizeSpin->setValue(qApp->getApplicationOverlay().getOculusUIAngularSize()); |
| 166 | 166 | |
| @@ -242,7 +242,7 @@ void PreferencesDialog::savePreferences() { · 75 unmodified lines | ||
| 242 | 242 | |
| 243 | 243 | faceshift->setHostname(ui.faceshiftHostnameEdit->text()); |
| 244 | 244 | |
| 245 | − Menu::getInstance()->setMaxOctreePacketsPerSecond(ui.maxOctreePPSSpin->value()); | |
| 245 | + qApp->getOctreeQuery().setMaxOctreePacketsPerSecond(ui.maxOctreePPSSpin->value()); | |
| 246 | 246 | |
| 247 | 247 | qApp->getApplicationOverlay().setOculusUIAngularSize(ui.oculusUIAngularSizeSpin->value()); |
| 248 | 248 | |