diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-23 00:15:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-23 00:15:42 +0400 |
commit | 3c67cf9594264d8c4fc44f8f15e4033aa9b0e92d (patch) | |
tree | 4f9a52414c2793ae9faa67918ac1d68d9cc2dc81 /source/blender/bmesh | |
parent | 36e7a9845901bfc7368853312bbf872a17f5bae1 (diff) |
from bug report [#34984] bmesh.ops.recalc_face_normals() ignores use_flip=True
the name `use_flip` is misleading, option in fact tags faces that have been flipped, rename to `use_face_tag`
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_opdefines.c | 2 | ||||
-rw-r--r-- | source/blender/bmesh/operators/bmo_utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_opdefines.c b/source/blender/bmesh/intern/bmesh_opdefines.c index e68bdd2cc8c..4ce56e23aec 100644 --- a/source/blender/bmesh/intern/bmesh_opdefines.c +++ b/source/blender/bmesh/intern/bmesh_opdefines.c @@ -150,7 +150,7 @@ static BMOpDefine bmo_recalc_face_normals_def = { "recalc_face_normals", /* slots_in */ {{"faces", BMO_OP_SLOT_ELEMENT_BUF, {BM_FACE}}, - {"use_flip", BMO_OP_SLOT_BOOL}, /* Reverse the result */ + {"use_face_tag", BMO_OP_SLOT_BOOL}, /* Tag faces that have been flipped */ {{'\0'}}, }, {{{'\0'}}}, /* no output */ diff --git a/source/blender/bmesh/operators/bmo_utils.c b/source/blender/bmesh/operators/bmo_utils.c index 76962807cd5..af96b62e074 100644 --- a/source/blender/bmesh/operators/bmo_utils.c +++ b/source/blender/bmesh/operators/bmo_utils.c @@ -315,7 +315,7 @@ void bmo_recalc_face_normals_exec(BMesh *bm, BMOperator *op) BMLoop *l, *l2; float maxx, maxx_test, cent[3]; int i, i_max; - const bool use_flip = BMO_slot_bool_get(op->slots_in, "use_flip"); + const bool use_flip = BMO_slot_bool_get(op->slots_in, "use_face_tag"); startf = NULL; maxx = -1.0e10; |