only keyframe selected maskobjects
authorCampbell Barton <ideasman42@gmail.com>
Wed, 30 May 2012 13:46:44 +0000 (13:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 30 May 2012 13:46:44 +0000 (13:46 +0000)
source/blender/editors/mask/mask_shapekey.c

index cf2fb71920b145671684c9e3b2f5adfeb6deb7eb..e323a6abe15df6ca5be62eed8a6d8c982819b9dd 100755 (executable)
@@ -67,7 +67,7 @@ static int mask_shape_key_insert_exec(bContext *C, wmOperator *UNUSED(op))
        for (maskobj = mask->maskobjs.first; maskobj; maskobj = maskobj->next) {
                MaskObjectShape *maskobj_shape;
 
-               if (maskobj->restrictflag & (MASK_RESTRICT_VIEW | MASK_RESTRICT_SELECT)) {
+               if (!ED_mask_object_select_check(maskobj)) {
                        continue;
                }
 
@@ -113,7 +113,7 @@ static int mask_shape_key_clear_exec(bContext *C, wmOperator *UNUSED(op))
        for (maskobj = mask->maskobjs.first; maskobj; maskobj = maskobj->next) {
                MaskObjectShape *maskobj_shape;
 
-               if (maskobj->restrictflag & (MASK_RESTRICT_VIEW | MASK_RESTRICT_SELECT)) {
+               if (!ED_mask_object_select_check(maskobj)) {
                        continue;
                }