diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-19 21:29:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-19 21:29:04 +0300 |
commit | 16355d545b936f42008f1eeac7835f8b4130048d (patch) | |
tree | 68a961b6183baa562dca852a5eb1161d5b62057f /source | |
parent | c4235356c95ef918aeb26ee2686c3e46686ac2b2 (diff) |
Fix T52834: Polyfill2D fails with co-linear edges
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/intern/polyfill2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/polyfill2d.c b/source/blender/blenlib/intern/polyfill2d.c index 5f9b92198a5..26f8709b16e 100644 --- a/source/blender/blenlib/intern/polyfill2d.c +++ b/source/blender/blenlib/intern/polyfill2d.c @@ -411,11 +411,11 @@ static bool kdtree2d_isect_tri_recursive( } #define KDTREE2D_ISECT_TRI_RECURSE_NEG \ - (((node->neg != KDNODE_UNSET) && (co[node->axis] > bounds[node->axis].min)) && \ + (((node->neg != KDNODE_UNSET) && (co[node->axis] >= bounds[node->axis].min)) && \ (kdtree2d_isect_tri_recursive(tree, tri_index, tri_coords, tri_center, bounds, \ &tree->nodes[node->neg]))) #define KDTREE2D_ISECT_TRI_RECURSE_POS \ - (((node->pos != KDNODE_UNSET) && (co[node->axis] < bounds[node->axis].max)) && \ + (((node->pos != KDNODE_UNSET) && (co[node->axis] <= bounds[node->axis].max)) && \ (kdtree2d_isect_tri_recursive(tree, tri_index, tri_coords, tri_center, bounds, \ &tree->nodes[node->pos]))) |