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>2020-01-20 11:19:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-20 11:19:04 +0300
commit6395937b01f0f6ca8669d694edcf9e7d258a30a1 (patch)
treeb09731acf2af367c07772fcc9f0850fbd057d0be /source/blender/editors/mesh
parent81b7f8efaf7a0dfec7a17a11ff2f2c8af661bbd2 (diff)
Fix T71922: Bisect creates flipped faces
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_bisect.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/mesh/editmesh_bisect.c b/source/blender/editors/mesh/editmesh_bisect.c
index 0bf9688888b..b2af58e47f2 100644
--- a/source/blender/editors/mesh/editmesh_bisect.c
+++ b/source/blender/editors/mesh/editmesh_bisect.c
@@ -346,10 +346,9 @@ static int mesh_bisect_exec(bContext *C, wmOperator *op)
BMOperator bmop_fill;
BMOperator bmop_attr;
+ /* The fill normal sign is ignored as the face-winding is defined by surrounding faces.
+ * The normal is passed so triangle fill wont have to calculate it. */
normalize_v3_v3(normal_fill, plane_no_local);
- if (clear_outer == true && clear_inner == false) {
- negate_v3(normal_fill);
- }
/* Fill */
BMO_op_initf(bm,
@@ -369,7 +368,7 @@ static int mesh_bisect_exec(bContext *C, wmOperator *op)
"face_attribute_fill faces=%S use_normals=%b use_data=%b",
&bmop_fill,
"geom.out",
- false,
+ true,
true);
BMO_op_exec(bm, &bmop_attr);