diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-04 15:25:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-04 15:25:02 +0400 |
commit | 90d7e25b4fe6191b0b433d4e1cf900b90811bd83 (patch) | |
tree | 98e337360ffbbe66ac240c4ca3f8555839169826 /source/blender/blenkernel | |
parent | 0747e75cc604e73610427fcf8817a2c9eeb74bbc (diff) |
add select linked operator, works as with meshes.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_mask.h | 4 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/mask.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/BKE_mask.h b/source/blender/blenkernel/BKE_mask.h index 5128141499e..a26934f103b 100644 --- a/source/blender/blenkernel/BKE_mask.h +++ b/source/blender/blenkernel/BKE_mask.h @@ -91,8 +91,8 @@ float BKE_mask_point_weight(struct MaskSpline *spline, struct MaskSplinePoint *p struct MaskSplinePointUW *BKE_mask_point_sort_uw(struct MaskSplinePoint *point, struct MaskSplinePointUW *uw); void BKE_mask_point_add_uw(struct MaskSplinePoint *point, float u, float w); -void BKE_mask_point_select_set(struct MaskSplinePoint *point, int select); -void BKE_mask_point_select_set_handle(struct MaskSplinePoint *point, int select); +void BKE_mask_point_select_set(struct MaskSplinePoint *point, const short do_select); +void BKE_mask_point_select_set_handle(struct MaskSplinePoint *point, const short do_select); /* general */ struct Mask *BKE_mask_new(const char *name); diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c index 5c7cdc7ef11..52225a1fab0 100644 --- a/source/blender/blenkernel/intern/mask.c +++ b/source/blender/blenkernel/intern/mask.c @@ -673,11 +673,11 @@ void BKE_mask_point_add_uw(MaskSplinePoint *point, float u, float w) BKE_mask_point_sort_uw(point, &point->uw[point->tot_uw - 1]); } -void BKE_mask_point_select_set(MaskSplinePoint *point, int select) +void BKE_mask_point_select_set(MaskSplinePoint *point, const short do_select) { int i; - if (select) { + if (do_select) { MASKPOINT_SEL_ALL(point); } else { @@ -685,7 +685,7 @@ void BKE_mask_point_select_set(MaskSplinePoint *point, int select) } for (i = 0; i < point->tot_uw; i++) { - if (select) { + if (do_select) { point->uw[i].flag |= SELECT; } else { @@ -694,9 +694,9 @@ void BKE_mask_point_select_set(MaskSplinePoint *point, int select) } } -void BKE_mask_point_select_set_handle(MaskSplinePoint *point, int select) +void BKE_mask_point_select_set_handle(MaskSplinePoint *point, const short do_select) { - if (select) { + if (do_select) { MASKPOINT_SEL_HANDLE(point); } else { |