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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-20 19:07:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-20 19:07:57 +0400
commit49c61e169bb4114b63d99d842c27d533b8733f82 (patch)
tree2e57f7c064f31e5222ae1dbb8a6e2b1579bd7270 /source/blender/editors/mesh/meshtools.c
parent8ff67f12c79819cc06bb803ef79e7c97f73f2ef1 (diff)
misc edits
- fix for missing None check with recent 'Hidden Wire' draw option. - avoid int overflow with mesh selection. - remove ';' outside of functions.
Diffstat (limited to 'source/blender/editors/mesh/meshtools.c')
-rw-r--r--source/blender/editors/mesh/meshtools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c
index 950482df555..d0adfc20f79 100644
--- a/source/blender/editors/mesh/meshtools.c
+++ b/source/blender/editors/mesh/meshtools.c
@@ -1200,7 +1200,7 @@ bool ED_mesh_pick_face(bContext *C, Object *ob, const int mval[2], unsigned int
*index = view3d_sample_backbuf(&vc, mval[0], mval[1]);
}
- if ((*index) <= 0 || (*index) > (unsigned int)me->totpoly)
+ if ((*index) == 0 || (*index) > (unsigned int)me->totpoly)
return false;
(*index)--;
@@ -1321,7 +1321,7 @@ bool ED_mesh_pick_vert(bContext *C, Object *ob, const int mval[2], unsigned int
*index = view3d_sample_backbuf(&vc, mval[0], mval[1]);
}
- if ((*index) <= 0 || (*index) > (unsigned int)me->totvert)
+ if ((*index) == 0 || (*index) > (unsigned int)me->totvert)
return false;
(*index)--;