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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-27 14:55:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-27 14:55:24 +0400
commit915fdd67dfff68c70b617c174e21d074335dee36 (patch)
tree0f055f621774d96b0eb0a0e0ec310b81ae7a3b86 /source
parent6926e924c0645ab97f41aefebc6b32d5d03fa9c2 (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.c10
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);
}
}