diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-10 03:10:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-10 03:10:43 +0300 |
commit | 2ed82275b5738255f3830b25c5a7375501246911 (patch) | |
tree | 2f40edd5182ce9fb6e9a19c3d046f97071d15287 /source | |
parent | d9f131f2f00677cb089b42ef662d14040ef40157 (diff) |
transforming pose bones while the animation was playing would crash.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 8148e10b5d2..8b47fbd5b4c 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -770,13 +770,15 @@ void recalcData(TransInfo *t) /* 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) + * + * context is needed for keying set poll() functions. */ // TODO: autokeyframe calls need some setting to specify to add samples (FPoints) instead of keyframes? - if ((t->animtimer) && IS_AUTOKEY_ON(t->scene)) { + if ((t->animtimer) && (t->context) && IS_AUTOKEY_ON(t->scene)) { int targetless_ik= (t->flag & T_AUTOIK); // XXX this currently doesn't work, since flags aren't set yet! animrecord_check_state(t->scene, &ob->id, t->animtimer); - autokeyframe_pose_cb_func(NULL, t->scene, (View3D *)t->view, ob, t->mode, targetless_ik); + autokeyframe_pose_cb_func(t->context, t->scene, (View3D *)t->view, ob, t->mode, targetless_ik); } /* old optimize trick... this enforces to bypass the depgraph */ |