diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-18 09:25:57 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-18 09:25:57 +0300 |
commit | 3f72758da25006d612dc0214cadf71fad54d9894 (patch) | |
tree | cef1e2141ef3290930f4f4d1ca44f39b647a0324 /source/blender/editors | |
parent | d38babbee9901b310759f76b8188af604b9030fb (diff) |
Bugfix for Record Transform Animation
Only selected objects are now keyframed.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index ff7498a7d68..276b09563a7 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -589,14 +589,17 @@ void recalcData(TransInfo *t) 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 */ |