Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-10-01 21:38:44 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-10-02 20:42:37 +0300
commitaabd8701e98595bae57d59344ed5d127b8b0f7db (patch)
tree5f4bc9ecb2f5b23dfbcb2ab6556b22b3970556cf /source/blender/blenloader
parentd1a1302b01f445f9c877d6b8c51f6c561e0fda16 (diff)
Implement a user preference for the default Auto Handle Smoothing mode.
The default was changed with an initial implementation of the feature. With the feedback from animators, having a behavior which affects curves outside of a changing range is not convenient for professional animators working on high quality character animation. On the other hand, automatic smoothing is better for casual animation of object motion. This change adds an ability to change the default via User Preferences. Differential Revision: https://developer.blender.org/D5875
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index e769e72d8e1..3eaf45954f3 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -30,6 +30,7 @@
#include "DNA_windowmanager_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
+#include "DNA_anim_types.h"
#include "BKE_addon.h"
#include "BKE_colorband.h"
@@ -624,15 +625,20 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
userdef->filebrowser_display_type = USER_TEMP_SPACE_DISPLAY_WINDOW;
}
+ if (!USER_VERSION_ATLEAST(281, 13)) {
+ userdef->auto_smoothing_new = FCURVE_SMOOTH_CONT_ACCEL;
+
+ if (userdef->file_space_data.display_type == FILE_DEFAULTDISPLAY) {
+ memcpy(
+ &userdef->file_space_data, &U_default.file_space_data, sizeof(userdef->file_space_data));
+ }
+ }
+
/**
* Include next version bump.
*/
{
/* pass */
- if (userdef->file_space_data.display_type == FILE_DEFAULTDISPLAY) {
- memcpy(
- &userdef->file_space_data, &U_default.file_space_data, sizeof(userdef->file_space_data));
- }
}
if (userdef->pixelsize == 0.0f) {