diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-06-17 15:16:13 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-06-17 15:16:13 +0300 |
commit | e03b7176877d27f4dd42dd698a85a1f046f9202a (patch) | |
tree | 57930d5ffc7eb6c54529a59269a1c23a340c24da /source/blender/blenkernel/BKE_pbvh.h | |
parent | 5e7e49e00d46734281b28a82582e3e3dd37e609c (diff) |
Fix T65620: Sculpting brush size jumping.
The PBVHs raycast function calls `isect_ray_tri_epsilon_v3` with epsilon `0.1` which is inaccurate and may result in the problem presented in T65620.
The solution is to use `isect_ray_tri_watertight_v3` instead `isect_ray_tri_epsilon_v3`.
This can positively affect other areas as well.
Reviewers: brecht, campbellbarton
Differential Revision: https://developer.blender.org/D5083
Diffstat (limited to 'source/blender/blenkernel/BKE_pbvh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_pbvh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h index 0a6f3a7d4d9..4edc5e651d8 100644 --- a/source/blender/blenkernel/BKE_pbvh.h +++ b/source/blender/blenkernel/BKE_pbvh.h @@ -133,12 +133,12 @@ bool BKE_pbvh_node_raycast(PBVH *bvh, float (*origco)[3], bool use_origco, const float ray_start[3], - const float ray_normal[3], + struct IsectRayPrecalc *isect_precalc, float *depth); bool BKE_pbvh_bmesh_node_raycast_detail(PBVHNode *node, const float ray_start[3], - const float ray_normal[3], + struct IsectRayPrecalc *isect_precalc, float *depth, float *r_edge_length); |