Fix T71612: Viewport rotate doesn't work

Error in version patching.
This commit is contained in:
Campbell Barton 2019-11-24 22:47:47 +11:00
parent 9af0cdcd93
commit 8cb55f8d16
Notes: blender-bot 2023-02-14 00:13:33 +01:00
Referenced by issue #71612, view stops rotating
2 changed files with 4 additions and 4 deletions

View File

@ -3712,10 +3712,6 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
if (!MAIN_VERSION_ATLEAST(bmain, 281, 3)) {
if (U.view_rotate_sensitivity_turntable == 0) {
U.view_rotate_sensitivity_turntable = DEG2RADF(0.4f);
U.view_rotate_sensitivity_trackball = 1.0f;
}
for (bScreen *screen = bmain->screens.first; screen; screen = screen->id.next) {
for (ScrArea *sa = screen->areabase.first; sa; sa = sa->next) {
for (SpaceLink *sl = sa->spacedata.first; sl; sl = sl->next) {

View File

@ -670,6 +670,10 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
* Include next version bump.
*/
{
if (userdef->view_rotate_sensitivity_turntable == 0.0f) {
userdef->view_rotate_sensitivity_turntable = DEG2RADF(0.4f);
userdef->view_rotate_sensitivity_trackball = 1.0f;
}
/* pass */
}