Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/keyframes_keylist.cc
| Show First 20 Lines • Show All 813 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| void agroup_to_keylist(AnimData *adt, | void agroup_to_keylist(AnimData *adt, | ||||
| bActionGroup *agrp, | bActionGroup *agrp, | ||||
| AnimKeylist *keylist, | AnimKeylist *keylist, | ||||
| const int saction_flag) | const int saction_flag) | ||||
| { | { | ||||
| if (agrp) { | if (agrp) { | ||||
| /* loop through subgroups */ | |||||
| bActionGroup *subgrp; | |||||
| for (subgrp = agrp->prev; subgrp; subgrp = subgrp->prev) { | |||||
| if (subgrp->parent == agrp) { | |||||
| agroup_to_keylist(adt, subgrp, keylist, saction_flag); | |||||
| } | |||||
| } | |||||
| for (subgrp = agrp->next; subgrp; subgrp = subgrp->next) { | |||||
| if (subgrp->parent == agrp) { | |||||
| agroup_to_keylist(adt, subgrp, keylist, saction_flag); | |||||
| } | |||||
| } | |||||
| /* loop through F-Curves */ | /* loop through F-Curves */ | ||||
| LISTBASE_FOREACH (FCurve *, fcu, &agrp->channels) { | LISTBASE_FOREACH (FCurve *, fcu, &agrp->channels) { | ||||
| if (fcu->grp != agrp) { | if (fcu->grp != agrp) { | ||||
| break; | break; | ||||
| } | } | ||||
| fcurve_to_keylist(adt, fcu, keylist, saction_flag); | fcurve_to_keylist(adt, fcu, keylist, saction_flag); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||