Anim Bugfixes:
* Add F-Modifiers (for Graph Editor) was using a buggy poll() method. Silly typo. * Bone groups now get duplicated when duplicating an armature object
This commit is contained in:
parent
fbb47e8604
commit
0a374e6679
@ -511,16 +511,21 @@ void copy_pose (bPose **dst, bPose *src, int copycon)
|
||||
outPose= MEM_callocN(sizeof(bPose), "pose");
|
||||
|
||||
BLI_duplicatelist(&outPose->chanbase, &src->chanbase);
|
||||
|
||||
outPose->iksolver = src->iksolver;
|
||||
outPose->ikdata = NULL;
|
||||
outPose->ikparam = MEM_dupallocN(src->ikparam);
|
||||
|
||||
|
||||
// TODO: rename this argument...
|
||||
if (copycon) {
|
||||
for (pchan=outPose->chanbase.first; pchan; pchan=pchan->next) {
|
||||
copy_constraints(&listb, &pchan->constraints); // copy_constraints NULLs listb
|
||||
pchan->constraints= listb;
|
||||
pchan->path= NULL;
|
||||
}
|
||||
|
||||
/* for now, duplicate Bone Groups too when doing this */
|
||||
BLI_duplicatelist(&outPose->agroups, &src->agroups);
|
||||
}
|
||||
|
||||
*dst=outPose;
|
||||
|
@ -292,7 +292,6 @@ int graphop_selected_fcurve_poll (bContext *C)
|
||||
ListBase anim_data = {NULL, NULL};
|
||||
ScrArea *sa= CTX_wm_area(C);
|
||||
int filter, items;
|
||||
short found = 0;
|
||||
|
||||
/* firstly, check if in Graph Editor */
|
||||
// TODO: also check for region?
|
||||
@ -311,7 +310,7 @@ int graphop_selected_fcurve_poll (bContext *C)
|
||||
|
||||
/* cleanup and return findings */
|
||||
BLI_freelistN(&anim_data);
|
||||
return found;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* ************************************************************** */
|
||||
|
Loading…
Reference in New Issue
Block a user