diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-21 20:52:50 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-21 20:52:50 +0400 |
commit | d88e9fb3389309869389aa059f6be65f13230a7a (patch) | |
tree | d3ec82bbd7f287883c839f7aed7e2a59fa463dba /source | |
parent | b963434f4965ca348c00b34e3aea5d7ab7374c71 (diff) |
Minor cleanup of previous commit.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 5 |
1 files changed, 3 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 92fe8a24653..53435b62af3 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; |