Commit: d88e9fb3389309869389aa059f6be65f13230a7a
Author: Antony Riakiotakis
Date:   Wed May 21 18:52:50 2014 +0200
https://developer.blender.org/rBd88e9fb3389309869389aa059f6be65f13230a7a

Minor cleanup of previous commit.

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

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 92fe8a2..53435b6 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -843,10 +843,11 @@ static bool pixel_bounds_array(float (*uv)[2], rcti 
*bounds_px, const int ibuf_x
 static void project_face_winding_init(const ProjPaintState *ps, const int 
face_index)
 {
        /* detect the winding of faces in uv space */
-       float winding = cross_tri_v2(ps->dm_mtface[face_index].uv[0], 
ps->dm_mtface[face_index].uv[1], ps->dm_mtface[face_index].uv[2]);
+       MTFace *tf = ps->dm_mtface + face_index;
+       float winding = cross_tri_v2(tf->uv[0], tf->uv[1], tf->uv[2]);
 
        if (ps->dm_mface[face_index].v4)
-               winding += cross_tri_v2(ps->dm_mtface[face_index].uv[2], 
ps->dm_mtface[face_index].uv[3], ps->dm_mtface[face_index].uv[0]);
+               winding += cross_tri_v2(tf->uv[2], tf->uv[3], tf->uv[0]);
 
        if (winding > 0)
                ps->faceWindingFlags[face_index] |= PROJ_FACE_WINDING_CW;

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

Reply via email to