Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/drivers.c
| Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | else { | ||||
| * - These are configured to 0,0 and 1,1 to give a 1-1 mapping | * - These are configured to 0,0 and 1,1 to give a 1-1 mapping | ||||
| * which can be easily tweaked from there. | * which can be easily tweaked from there. | ||||
| */ | */ | ||||
| insert_vert_fcurve( | insert_vert_fcurve( | ||||
| fcu, 0.0f, 0.0f, BEZT_KEYTYPE_KEYFRAME, INSERTKEY_FAST | INSERTKEY_NO_USERPREF); | fcu, 0.0f, 0.0f, BEZT_KEYTYPE_KEYFRAME, INSERTKEY_FAST | INSERTKEY_NO_USERPREF); | ||||
| insert_vert_fcurve( | insert_vert_fcurve( | ||||
| fcu, 1.0f, 1.0f, BEZT_KEYTYPE_KEYFRAME, INSERTKEY_FAST | INSERTKEY_NO_USERPREF); | fcu, 1.0f, 1.0f, BEZT_KEYTYPE_KEYFRAME, INSERTKEY_FAST | INSERTKEY_NO_USERPREF); | ||||
| fcu->extend = FCURVE_EXTRAPOLATE_LINEAR; | fcu->extend = FCURVE_EXTRAPOLATE_LINEAR; | ||||
| calchandles_fcurve(fcu); | BKE_fcurve_handles_recalc(fcu); | ||||
| } | } | ||||
| } | } | ||||
| return fcu; | return fcu; | ||||
| } | } | ||||
| /* ************************************************** */ | /* ************************************************** */ | ||||
| /* Driver Management API */ | /* Driver Management API */ | ||||
| ▲ Show 20 Lines • Show All 1,134 Lines • Show Last 20 Lines | |||||