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:
authormano-wii <germano.costa@ig.com.br>2019-05-29 07:02:04 +0300
committermano-wii <germano.costa@ig.com.br>2019-05-29 07:02:04 +0300
commit2d8584c15ff76ada379553c235a8ec38f6681645 (patch)
treed75bb76305adb8713121960878e5eeae034f2126 /source/blender/blenkernel/BKE_bvhutils.h
parentd97c841eb88a1d918538fd92c512ed48c8126770 (diff)
Fix T65027: Snap 3D cursor on hidden faces doesn't work in Edit Mode.
I'm not very fond of adding new types of bvhtrees. But this is probably the most efficient solution.
Diffstat (limited to 'source/blender/blenkernel/BKE_bvhutils.h')
-rw-r--r--source/blender/blenkernel/BKE_bvhutils.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/source/blender/blenkernel/BKE_bvhutils.h b/source/blender/blenkernel/BKE_bvhutils.h
index 4b64b6fa269..c88a64097bb 100644
--- a/source/blender/blenkernel/BKE_bvhutils.h
+++ b/source/blender/blenkernel/BKE_bvhutils.h
@@ -216,17 +216,18 @@ float bvhtree_sphereray_tri_intersection(const BVHTreeRay *ray,
/* Using local coordinates */
enum {
- BVHTREE_FROM_VERTS = 0,
- BVHTREE_FROM_EDGES = 1,
- BVHTREE_FROM_FACES = 2,
- BVHTREE_FROM_LOOPTRI = 3,
-
- BVHTREE_FROM_LOOSEVERTS = 4,
- BVHTREE_FROM_LOOSEEDGES = 5,
-
- BVHTREE_FROM_EM_VERTS = 6,
- BVHTREE_FROM_EM_EDGES = 7,
- BVHTREE_FROM_EM_LOOPTRI = 8,
+ BVHTREE_FROM_VERTS,
+ BVHTREE_FROM_EDGES,
+ BVHTREE_FROM_FACES,
+ BVHTREE_FROM_LOOPTRI,
+ BVHTREE_FROM_LOOPTRI_NO_HIDDEN,
+
+ BVHTREE_FROM_LOOSEVERTS,
+ BVHTREE_FROM_LOOSEEDGES,
+
+ BVHTREE_FROM_EM_VERTS,
+ BVHTREE_FROM_EM_EDGES,
+ BVHTREE_FROM_EM_LOOPTRI,
};
bool bvhcache_find(const BVHCache *cache, int type, BVHTree **r_tree);