[Bf-blender-cvs] [9e46eebcf1b] temp_bmesh_multires: Fix last commit flipping the order of booleans.
Joseph Eagar
noreply at git.blender.org
Tue Apr 27 22:21:39 CEST 2021
Commit: 9e46eebcf1b40b6ef1769b424e92b5543862e326
Author: Joseph Eagar
Date: Tue Apr 27 13:20:36 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB9e46eebcf1b40b6ef1769b424e92b5543862e326
Fix last commit flipping the order of booleans.
===================================================================
M source/blender/editors/sculpt_paint/paint_mask.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 76216637e12..cee324ab8a3 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -1211,7 +1211,7 @@ static void sculpt_gesture_trim_geometry_free(SculptGestureContext *sgcontext)
static int bm_face_isect_pair(BMFace *f, void *UNUSED(user_data))
{
- return BM_elem_flag_test(f, BM_ELEM_DRAW) ? 1 : 0;
+ return BM_elem_flag_test(f, BM_ELEM_DRAW) ? 0 : 1;
}
static void sculpt_gesture_apply_trim(SculptGestureContext *sgcontext)
@@ -1224,7 +1224,9 @@ static void sculpt_gesture_apply_trim(SculptGestureContext *sgcontext)
if (sgcontext->ss && sgcontext->ss->bm) {
bm = sgcontext->ss->bm;
+ BM_mesh_normals_update(bm);
}
+
else {
const BMAllocTemplate allocsize = BMALLOC_TEMPLATE_FROM_ME(sculpt_mesh, trim_mesh);
bm = BM_mesh_create(&allocsize,
More information about the Bf-blender-cvs
mailing list