Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-05-21 20:52:50 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-05-21 20:52:50 +0400
commitd88e9fb3389309869389aa059f6be65f13230a7a (patch)
treed3ec82bbd7f287883c839f7aed7e2a59fa463dba /source/blender
parentb963434f4965ca348c00b34e3aea5d7ab7374c71 (diff)
Minor cleanup of previous commit.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c5
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;