diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-11-24 14:47:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-11-24 14:49:26 +0300 |
commit | 8cb55f8d1672de4b40ce9f5a6a4803a2779d7379 (patch) | |
tree | d09c6cc6e8be08f1af1607c85067c4adb309524b /source/blender/blenloader | |
parent | 9af0cdcd9349b6c0fd1cc0e57a58254e21e1bd3b (diff) |
Fix T71612: Viewport rotate doesn't work
Error in version patching.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 4 | ||||
-rw-r--r-- | source/blender/blenloader/intern/versioning_userdef.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 33a0da7457f..58a9f22c4bd 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -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) { diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index 838bb9bb9c8..f20ef8a07b7 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -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 */ } |