Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/nla.c
| Show First 20 Lines • Show All 1,493 Lines • ▼ Show 20 Lines | if (fcu == NULL) { | ||||
| fcu->rna_path = BLI_strdupn("influence", 9); | fcu->rna_path = BLI_strdupn("influence", 9); | ||||
| /* insert keyframe to ensure current value stays on first refresh */ | /* insert keyframe to ensure current value stays on first refresh */ | ||||
| fcu->bezt = MEM_callocN(sizeof(BezTriple), "nlastrip influence bezt"); | fcu->bezt = MEM_callocN(sizeof(BezTriple), "nlastrip influence bezt"); | ||||
| fcu->totvert = 1; | fcu->totvert = 1; | ||||
| fcu->bezt->vec[1][0] = strip->start; | fcu->bezt->vec[1][0] = strip->start; | ||||
| fcu->bezt->vec[1][1] = strip->influence; | fcu->bezt->vec[1][1] = strip->influence; | ||||
| /* Respect User Preferences for default interpolation and handles. */ | |||||
| fcu->bezt->h1 = fcu->bezt->h2 = U.keyhandles_new; | |||||
| fcu->bezt->ipo = U.ipo_new; | |||||
| } | } | ||||
| } | } | ||||
| /* if controlling time... */ | /* if controlling time... */ | ||||
| if (strip->flag & NLASTRIP_FLAG_USR_TIME) { | if (strip->flag & NLASTRIP_FLAG_USR_TIME) { | ||||
| /* try to get F-Curve */ | /* try to get F-Curve */ | ||||
| fcu = list_find_fcurve(&strip->fcurves, "strip_time", 0); | fcu = list_find_fcurve(&strip->fcurves, "strip_time", 0); | ||||
| ▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines | |||||