From c68295f7d3cd39fbf7dc929d8e4e12ad484d52eb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 31 May 2014 17:29:02 +1000 Subject: [PATCH] Fix incorrect flag checks for project-paint face winding --- source/blender/editors/sculpt_paint/paint_image_proj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 53435b62af3..cb2a94a0530 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -903,7 +903,7 @@ static bool check_seam(const ProjPaintState *ps, *orig_fidx = (i1_fidx < i2_fidx) ? i1_fidx : i2_fidx; /* initialize face winding if needed */ - if (!ps->faceWindingFlags[face_index] & PROJ_FACE_WINDING_INIT) + if ((ps->faceWindingFlags[face_index] & PROJ_FACE_WINDING_INIT) == 0) project_face_winding_init(ps, face_index); /* first test if they have the same image */ @@ -1049,7 +1049,7 @@ static void project_face_seams_init(const ProjPaintState *ps, const int face_ind int fidx2 = 0; /* next fidx in the face (0,1,2,3) -> (1,2,3,0) or (0,1,2) -> (1,2,0) for a tri */ /* initialize face winding if needed */ - if (!ps->faceWindingFlags[face_index] & PROJ_FACE_WINDING_INIT) + if ((ps->faceWindingFlags[face_index] & PROJ_FACE_WINDING_INIT) == 0) project_face_winding_init(ps, face_index); do {