[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19029] branches/blender2.5/blender/source /blender/editors/transform/transform_generics.c: Bugfix for Record Transform Animation
Joshua Leung
aligorith at gmail.com
Wed Feb 18 07:25:58 CET 2009
Revision: 19029
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19029
Author: aligorith
Date: 2009-02-18 07:25:57 +0100 (Wed, 18 Feb 2009)
Log Message:
-----------
Bugfix for Record Transform Animation
Only selected objects are now keyframed.
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/editors/transform/transform_generics.c
Modified: branches/blender2.5/blender/source/blender/editors/transform/transform_generics.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/transform/transform_generics.c 2009-02-18 06:03:14 UTC (rev 19028)
+++ branches/blender2.5/blender/source/blender/editors/transform/transform_generics.c 2009-02-18 06:25:57 UTC (rev 19029)
@@ -589,14 +589,17 @@
if(base->flag & BA_HAS_RECALC_DATA)
ob->recalc |= OB_RECALC_DATA;
- /* if animtimer is running, and the object already has animation data,
- * check if the auto-record feature means that we should record 'samples'
- * (i.e. uneditable animation values)
- */
- // TODO: autokeyframe calls need some setting to specify to add samples (FPoints) instead of keyframes?
- // TODO: maybe the ob->adt check isn't really needed? makes it too difficult to use...
- if (/*(ob->adt) && */(t->animtimer) && IS_AUTOKEY_ON(t->scene)) {
- autokeyframe_ob_cb_func(t->scene, (View3D *)t->view, ob, t->mode);
+ /* if object/base is selected */
+ if ((base->flag & SELECT) || (ob->flag & SELECT)) {
+ /* if animtimer is running, and the object already has animation data,
+ * check if the auto-record feature means that we should record 'samples'
+ * (i.e. uneditable animation values)
+ */
+ // TODO: autokeyframe calls need some setting to specify to add samples (FPoints) instead of keyframes?
+ // TODO: maybe the ob->adt check isn't really needed? makes it too difficult to use...
+ if (/*(ob->adt) && */(t->animtimer) && IS_AUTOKEY_ON(t->scene)) {
+ autokeyframe_ob_cb_func(t->scene, (View3D *)t->view, ob, t->mode);
+ }
}
/* proxy exception */
More information about the Bf-blender-cvs
mailing list