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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-03-28 23:43:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-03-28 23:44:40 +0400
commit8b43b9f2552fb6d769c751a1eb8eeb927ebfc079 (patch)
tree98a6888fe31839d446d78a56e2972b39de60ba3d /source/blender/editors/mask
parente9d733a8bd9ebf803d4afac419670974792a3c0d (diff)
Fix for mask vert add-slide dragging flipped direction
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_ops.c5
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);
+ }
}
}