[Bf-blender-cvs] [644a5ed7efe] smooth-fcurves: TEMPORARY HACK: convert the old flag to the new auto_smoothing enum.
Alexander Gavrilov
noreply at git.blender.org
Sun Aug 20 16:10:28 CEST 2017
Commit: 644a5ed7efe64cddb0d908f84c92e5527f664fbe
Author: Alexander Gavrilov
Date: Sat Aug 19 16:11:49 2017 +0300
Branches: smooth-fcurves
https://developer.blender.org/rB644a5ed7efe64cddb0d908f84c92e5527f664fbe
TEMPORARY HACK: convert the old flag to the new auto_smoothing enum.
Only for my branch build; not to be merged.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 248da6a9f55..13151ee30ee 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2509,6 +2509,12 @@ static void direct_link_fcurves(FileData *fd, ListBase *list)
*/
fcu->flag &= ~FCURVE_DISABLED;
+ /* TEMPORARY HACK */
+ if (fcu->flag & (1<<13)) {
+ fcu->flag &= ~(1<<13);
+ fcu->auto_smoothing = FCURVE_SMOOTH_CONT_ACCEL;
+ }
+
/* driver */
fcu->driver= newdataadr(fd, fcu->driver);
if (fcu->driver) {
More information about the Bf-blender-cvs
mailing list