Fix last commit flipping the order of booleans.

This commit is contained in:
Joseph Eagar 2021-04-27 13:20:36 -07:00
parent 786781304c
commit 9e46eebcf1
1 changed files with 3 additions and 1 deletions

View File

@ -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,