diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-13 07:42:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-13 07:45:35 +0300 |
commit | 8939787bfb4b9068408f5fb931354d0fe68faf86 (patch) | |
tree | f3ac06dbe71e83c1ca53476409a81af61ec5ea1b /source/blender/editors/space_node/node_draw.c | |
parent | 7a633d7c4f9fdc271bae7b7c83116c5ce61f4b1a (diff) |
Use BLI_bvhtree_walk_dfs for snapping
The snapping functions when performed in the perspective view,
have some problems in the threshold (a distortion) and in the clip plane (the normal is incorrect).
These problems can be only observed when making the snap to edges or to vertices (nearest to ray function).
This patch propose a totally different solution.
The idea is to project the edges of bvh nodes and test the 2d projection of the snap element.
For this it used the BLI_bvhtree_walk_dfs function.
It is important to pay particular attention also to the changes in `ED_transform_snap_object_project_view3d_ex`
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
0 files changed, 0 insertions, 0 deletions