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>2014-06-24 09:26:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-24 09:32:49 +0400
commita64e9ba83ff1d42bdd5677368a284b77f1b80df7 (patch)
tree253d6e0201d754d7b4317aa7a52c84f0ab3582bc /source/blender/blenlib/intern/polyfill2d.c
parentce729677db3e9934e2e2c56a9397a868c7546ee9 (diff)
Polyfill2d: Correct boundbox check (Fix T40777)
Diffstat (limited to 'source/blender/blenlib/intern/polyfill2d.c')
-rw-r--r--source/blender/blenlib/intern/polyfill2d.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c
index c7189021603..71cda92842a 100644
--- a/source/blender/blenlib/intern/polyfill2d.c
+++ b/source/blender/blenlib/intern/polyfill2d.c
@@ -378,10 +378,10 @@ static bool kdtree2d_isect_tri_recursive(
/* bounds then triangle intersect */
if ((node->flag & KDNODE_FLAG_REMOVED) == 0) {
/* bounding box test first */
- if ((co[0] > bounds[0].min) &&
- (co[0] < bounds[0].max) &&
- (co[1] > bounds[1].min) &&
- (co[1] < bounds[1].max))
+ if ((co[0] >= bounds[0].min) &&
+ (co[0] <= bounds[0].max) &&
+ (co[1] >= bounds[1].min) &&
+ (co[1] <= bounds[1].max))
{
if ((span_tri_v2_sign(tri_coords[0], tri_coords[1], co) != CONCAVE) &&
(span_tri_v2_sign(tri_coords[1], tri_coords[2], co) != CONCAVE) &&