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>2013-01-29 07:25:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-29 07:25:47 +0400
commit69585591d6a1d1fdac1e6b6ce508ccd3d936e2ac (patch)
treec5dcb84d8070b30fbf618702ed2ffb8e0e2ac3ed /source/blender/editors
parentcf9e619889fdcdc457e44d4b384cda091de55673 (diff)
Correct fix for r54164, the testcase I was using worked but different edge slide examples didn't.
Edge slide needed to check for concave ngons too. add BM_loop_is_convex() and expose to python too.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/transform/transform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index c4960de1e19..fb2d9af7c35 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -4932,7 +4932,7 @@ static BMLoop *get_next_loop(BMVert *v, BMLoop *l,
/* check if we need to flip
* (compare the normal defines by the edges with the face normal) */
cross_v3_v3v3(tvec, e_dir_prev, e_dir_next);
- if (dot_v3v3(tvec, l->f->no) > 0.0f) {
+ if ((dot_v3v3(tvec, l->f->no) < 0.0f) == BM_loop_is_convex(l)) {
negate_v3(vec_accum);
}
}