Commit: c68295f7d3cd39fbf7dc929d8e4e12ad484d52eb
Author: Campbell Barton
Date:   Sat May 31 17:29:02 2014 +1000
https://developer.blender.org/rBc68295f7d3cd39fbf7dc929d8e4e12ad484d52eb

Fix incorrect flag checks for project-paint face winding

===================================================================

M       source/blender/editors/sculpt_paint/paint_image_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c 
b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 53435b6..cb2a94a 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 {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to