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-12-19 04:27:32 +0300
committerJoshua Leung <aligorith@gmail.com>2010-12-19 04:27:32 +0300
commite47ab723a092ffcb31eb3329d6f81df6f7317767 (patch)
tree13e9ab6b20661de2dfed88846be6b05dbaf72226 /source/blender/editors/screen
parent43af26fa413acbc5514106b71e0fb3c145c9b165 (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.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_ops.c9
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);