diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 23:43:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-28 23:44:40 +0400 |
commit | 8b43b9f2552fb6d769c751a1eb8eeb927ebfc079 (patch) | |
tree | 98a6888fe31839d446d78a56e2972b39de60ba3d /source/blender/editors | |
parent | e9d733a8bd9ebf803d4afac419670974792a3c0d (diff) |
Fix for mask vert add-slide dragging flipped direction
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index da91c59a094..221c3c6ad75 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -797,6 +797,11 @@ static int slide_point_modal(bContext *C, wmOperator *op, const wmEvent *event) { SWAP(float, offco[0], offco[1]); offco[1] *= -1; + + /* flip last point */ + if (data->point != &data->spline->points[0]) { + negate_v2(offco); + } } } |