diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-27 14:55:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-27 14:55:24 +0400 |
commit | 915fdd67dfff68c70b617c174e21d074335dee36 (patch) | |
tree | 0f055f621774d96b0eb0a0e0ec310b81ae7a3b86 /source | |
parent | 6926e924c0645ab97f41aefebc6b32d5d03fa9c2 (diff) |
up/down arrows were not switching mask keyframes in the image space
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index 74fa6158b73..a431ea7ea03 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1970,12 +1970,10 @@ static int keyframe_jump_exec(bContext *C, wmOperator *op) ob_to_keylist(&ads, ob, &keys, NULL); { - SpaceClip *sc = CTX_wm_space_clip(C); - if (sc) { - if ((sc->mode == SC_MODE_MASKEDIT) && sc->mask_info.mask) { - MaskLayer *masklay = BKE_mask_layer_active(sc->mask_info.mask); - mask_to_keylist(&ads, masklay, &keys); - } + Mask *mask = CTX_data_edit_mask(C); + if (mask) { + MaskLayer *masklay = BKE_mask_layer_active(mask); + mask_to_keylist(&ads, masklay, &keys); } } |