diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-12-19 04:27:32 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-12-19 04:27:32 +0300 |
commit | e47ab723a092ffcb31eb3329d6f81df6f7317767 (patch) | |
tree | 13e9ab6b20661de2dfed88846be6b05dbaf72226 | |
parent | 43af26fa413acbc5514106b71e0fb3c145c9b165 (diff) |
Bugfix [#25221] Jump to Next/Prev keyframe doesn't work with
RotoBeizer
The jump to keyframes operator was being a bit too strict with its
checks for where it should check for keyframes.
In this particular case, RotoBezier keyframes were on Curve AnimData,
so the check for Object AnimData would return false, thus overlooking
this possibility. However, it should be safe enough to just open
things up a bit more.
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 0c49779cd84..5e2a908776d 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1664,6 +1664,7 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op) { Scene *scene= CTX_data_scene(C); Object *ob= CTX_data_active_object(C); + bDopeSheet ads= {0}; DLRBT_Tree keys; ActKeyColumn *ak; float cfra= (scene)? (float)(CFRA) : 0.0f; @@ -1678,10 +1679,10 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op) BLI_dlrbTree_init(&keys); /* populate tree with keyframe nodes */ - if (scene && scene->adt) - scene_to_keylist(NULL, scene, &keys, NULL); - if (ob && ob->adt) - ob_to_keylist(NULL, ob, &keys, NULL); + if (scene) + scene_to_keylist(&ads, scene, &keys, NULL); + if (ob) + ob_to_keylist(&ads, ob, &keys, NULL); /* build linked-list for searching */ BLI_dlrbTree_linkedlist_sync(&keys); |