Commit: a64e9ba83ff1d42bdd5677368a284b77f1b80df7
Author: Campbell Barton
Date:   Tue Jun 24 15:26:47 2014 +1000
https://developer.blender.org/rBa64e9ba83ff1d42bdd5677368a284b77f1b80df7

Polyfill2d: Correct boundbox check (Fix T40777)

===================================================================

M       source/blender/blenlib/intern/polyfill2d.c

===================================================================

diff --git a/source/blender/blenlib/intern/polyfill2d.c 
b/source/blender/blenlib/intern/polyfill2d.c
index c718902..71cda92 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) &&

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to