diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 20:59:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 20:59:04 +0300 |
commit | 3c184def72693e319253c31896b385c297183778 (patch) | |
tree | 665530e6a8a0a1e57ee7b02221b2530f10eb10c4 /source/blender/editors/uvedit/uvedit_draw.c | |
parent | 709c727c510a85426b87a9a2fb7fb8517fef7de9 (diff) |
use NULL instead of 0 for pointers, (editors)
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 45d1ceec30f..38df9a48fd0 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -179,7 +179,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, EditMesh *em, MTFac totarea += EM_face_area(efa); //totuvarea += tf_area(tf, efa->v4!=0); - totuvarea += uv_area(tf_uv, efa->v4!=0); + totuvarea += uv_area(tf_uv, efa->v4 != NULL); if(uvedit_face_visible(scene, ima, efa, tf)) { efa->tmp.p = tf; @@ -212,7 +212,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, EditMesh *em, MTFac area = EM_face_area(efa) / totarea; uv_copy_aspect(tf->uv, tf_uv, aspx, aspy); //uvarea = tf_area(tf, efa->v4!=0) / totuvarea; - uvarea = uv_area(tf_uv, efa->v4!=0) / totuvarea; + uvarea = uv_area(tf_uv, efa->v4 != NULL) / totuvarea; if(area < FLT_EPSILON || uvarea < FLT_EPSILON) areadiff = 1.0; |