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:
authorCampbell Barton <ideasman42@gmail.com>2013-11-19 07:31:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-11-19 07:31:26 +0400
commit2b946f42970bf4f3b8ce8e5c9b79451745309d89 (patch)
treea645788cfc92cbd34398eeae43843b1283e89d04 /source/blender/blenkernel/BKE_bvhutils.h
parent95d3286c65e034d9801c2623e81ef92a06e6cc8c (diff)
Fix T37445: Crash with snapping and shrink-wrap modifier.
Developer note: BVHTREE_FROM_FACES was being used for both edit-mesh and derived-mesh bvh-trees, this could cause index lookup errors in editmode. Fix by adding a new type for editmesh so theres no confusion.
Diffstat (limited to 'source/blender/blenkernel/BKE_bvhutils.h')
-rw-r--r--source/blender/blenkernel/BKE_bvhutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_bvhutils.h b/source/blender/blenkernel/BKE_bvhutils.h
index 8d4c9e782db..9e1bca45432 100644
--- a/source/blender/blenkernel/BKE_bvhutils.h
+++ b/source/blender/blenkernel/BKE_bvhutils.h
@@ -116,6 +116,8 @@ float nearest_point_in_tri_surface(const float v0[3], const float v1[3], const f
#define BVHTREE_FROM_VERTICES 1
#define BVHTREE_FROM_EDGES 2
+#define BVHTREE_FROM_FACES_EDITMESH 3
+
typedef struct LinkNode *BVHCache;