diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-08-19 15:23:02 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-08-19 15:23:18 +0400 |
commit | 3196a230a6b2481dc4b659bc458aea10f5cdd2ed (patch) | |
tree | d651e296e183b73eed6afa4410f9d5ee4b0b9b3a /source/blender/editors | |
parent | 5e6b79c1f52c5408a64a5e93ee09dd17a1ac5e7c (diff) |
Mask slide can be cancelled with RMB now
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index a882284f5e3..c9eacc898b5 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -970,8 +970,12 @@ static int slide_point_modal(bContext *C, wmOperator *op, const wmEvent *event) free_slide_point_data(op->customdata); /* keep this last! */ return OPERATOR_FINISHED; } - - break; + else if (event->type != data->event_invoke_type && event->val == KM_PRESS) { + /* pass to ESCKEY */ + } + else { + break; + } case ESCKEY: cancel_slide_point(op->customdata); |