Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/action_edit.c
| Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Lines | |||||
| /* this function is responsible for inserting new keyframes */ | /* this function is responsible for inserting new keyframes */ | ||||
| static void insert_action_keys(bAnimContext *ac, short mode) | static void insert_action_keys(bAnimContext *ac, short mode) | ||||
| { | { | ||||
| ListBase anim_data = {NULL, NULL}; | ListBase anim_data = {NULL, NULL}; | ||||
| ListBase nla_cache = {NULL, NULL}; | ListBase nla_cache = {NULL, NULL}; | ||||
| bAnimListElem *ale; | bAnimListElem *ale; | ||||
| int filter; | int filter; | ||||
| struct Depsgraph *depsgraph = ac->depsgraph; | |||||
| ReportList *reports = ac->reports; | ReportList *reports = ac->reports; | ||||
| Scene *scene = ac->scene; | Scene *scene = ac->scene; | ||||
| ToolSettings *ts = scene->toolsettings; | ToolSettings *ts = scene->toolsettings; | ||||
| short flag = 0; | short flag = 0; | ||||
| /* filter data */ | /* filter data */ | ||||
| filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | | filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | | ||||
| ANIMFILTER_FOREDIT /*| ANIMFILTER_CURVESONLY*/ | ANIMFILTER_NODUPLIS); | ANIMFILTER_FOREDIT /*| ANIMFILTER_CURVESONLY*/ | ANIMFILTER_NODUPLIS); | ||||
| Show All 20 Lines | for (ale = anim_data.first; ale; ale = ale->next) { | ||||
| * | * | ||||
| * - ale->owner != NULL: | * - ale->owner != NULL: | ||||
| * If this is set, then the path may not be resolvable from the ID alone, | * If this is set, then the path may not be resolvable from the ID alone, | ||||
| * so it's easier for now to just read the F-Curve directly. | * so it's easier for now to just read the F-Curve directly. | ||||
| * (TODO: add the full-blown PointerRNA relative parsing case here...) | * (TODO: add the full-blown PointerRNA relative parsing case here...) | ||||
| */ | */ | ||||
| if (ale->id && !ale->owner) { | if (ale->id && !ale->owner) { | ||||
| insert_keyframe(ac->bmain, | insert_keyframe(ac->bmain, | ||||
| depsgraph, | |||||
| reports, | reports, | ||||
| ale->id, | ale->id, | ||||
| NULL, | NULL, | ||||
| ((fcu->grp) ? (fcu->grp->name) : (NULL)), | ((fcu->grp) ? (fcu->grp->name) : (NULL)), | ||||
| fcu->rna_path, | fcu->rna_path, | ||||
| fcu->array_index, | fcu->array_index, | ||||
| cfra, | cfra, | ||||
| ts->keyframe_type, | ts->keyframe_type, | ||||
| ▲ Show 20 Lines • Show All 1,165 Lines • Show Last 20 Lines | |||||