[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23605] trunk/blender/source/blender: Anim Bugfixes:
Joshua Leung
aligorith at gmail.com
Fri Oct 2 13:15:24 CEST 2009
Revision: 23605
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23605
Author: aligorith
Date: 2009-10-02 13:15:24 +0200 (Fri, 02 Oct 2009)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/action.c
trunk/blender/source/blender/editors/space_graph/graph_utils.c
Modified: trunk/blender/source/blender/blenkernel/intern/action.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/action.c 2009-10-02 11:09:05 UTC (rev 23604)
+++ trunk/blender/source/blender/blenkernel/intern/action.c 2009-10-02 11:15:24 UTC (rev 23605)
@@ -511,16 +511,21 @@
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;
Modified: trunk/blender/source/blender/editors/space_graph/graph_utils.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_utils.c 2009-10-02 11:09:05 UTC (rev 23604)
+++ trunk/blender/source/blender/editors/space_graph/graph_utils.c 2009-10-02 11:15:24 UTC (rev 23605)
@@ -292,7 +292,6 @@
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 @@
/* cleanup and return findings */
BLI_freelistN(&anim_data);
- return found;
+ return 1;
}
/* ************************************************************** */
More information about the Bf-blender-cvs
mailing list