Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-04-06 08:25:48 +0400
committerJoshua Leung <aligorith@gmail.com>2010-04-06 08:25:48 +0400
commit56b67d41aa7addd1aa1757e9870bc1e8ea4ad295 (patch)
tree0e7918000d94b148cee139acd9043e85b3af67b3 /source/blender/makesrna/intern/rna_fcurve.c
parent825c1621675b85d06f6a5a27172ed6aa3c261114 (diff)
Bugfix #21916: Baking NLA strips doesn't group transforms
- Added an optional string arg to struct.keyframe_insert() and struct.keyframe_delete() for the name of the group to add the keyframes to (for newly created F-Curves), instead of doing this as post process. - Added error prints to the RNA function for setting an F-Curve's group. The old way of setting the groups afterwards couldn't be used anymore, since there was no way to find the action the F-Curve belonged to. This is necessary if the F-Curve list is to be kept in a valid state, since adding to any random group that may not be in the same Action does not work well. There were other issues with the list being iterated over changing while it was still being iterated over too... TODO: Find a way to allow the iterator there to still work ok?
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r--source/blender/makesrna/intern/rna_fcurve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c
index b67eebadac8..7946e73af0f 100644
--- a/source/blender/makesrna/intern/rna_fcurve.c
+++ b/source/blender/makesrna/intern/rna_fcurve.c
@@ -337,6 +337,7 @@ static void rna_FCurve_group_set(PointerRNA *ptr, PointerRNA value)
/* already belongs to group? */
if (fcu->grp == value.data) {
/* nothing to do */
+ printf("ERROR: F-Curve already belongs to the group\n");
return;
}
@@ -345,6 +346,7 @@ static void rna_FCurve_group_set(PointerRNA *ptr, PointerRNA value)
*/
if (act == NULL) {
/* can't change the grouping of F-Curve when it doesn't belong to an action */
+ printf("ERROR: cannot assign F-Curve to group, since F-Curve is not attached to any ID\n");
return;
}