Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 72 files). Show all
Unified · Split
| @@ -247,12 +247,7 @@ void PreferencesDialog::savePreferences() { · 246 unmodified lines | ||
| 247 | 247 | myAvatar->setLeanScale(ui.leanScaleSpin->value()); |
| 248 | 248 | myAvatar->setClampedTargetScale(ui.avatarScaleSpin->value()); |
| 249 | 249 | if (myAvatar->getAnimGraphUrl() != ui.avatarAnimationEdit->text()) { // If changed, destroy the old and start with the new |
| 250 | − bool isEnabled = myAvatar->getEnableAnimGraph(); | |
| 251 | − myAvatar->setEnableAnimGraph(false); | |
| 252 | 250 | myAvatar->setAnimGraphUrl(ui.avatarAnimationEdit->text()); |
| 253 | − if (isEnabled) { | |
| 254 | − myAvatar->setEnableAnimGraph(true); | |
| 255 | − } | |
| 256 | 251 | } |
| 257 | 252 | |
| 258 | 253 | myAvatar->setRealWorldFieldOfView(ui.realWorldFieldOfViewSpin->value()); |