[Bf-blender-cvs] [46ccc54] master: Fix error not using the cached BVH tree
Campbell Barton
noreply at git.blender.org
Thu May 5 21:12:49 CEST 2016
Commit: 46ccc54faf8257780dbd8f5d36abc1419ad5576c
Author: Campbell Barton
Date: Fri May 6 05:17:34 2016 +1000
Branches: master
https://developer.blender.org/rB46ccc54faf8257780dbd8f5d36abc1419ad5576c
Fix error not using the cached BVH tree
===================================================================
M source/blender/editors/transform/transform_snap_object.c
===================================================================
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c
index 5174c24..1b1c2c9 100644
--- a/source/blender/editors/transform/transform_snap_object.c
+++ b/source/blender/editors/transform/transform_snap_object.c
@@ -668,7 +668,7 @@ static bool snapDerivedMesh(
}
}
- if (treedata) {
+ if (treedata && treedata->tree == NULL) {
switch (snap_to) {
case SCE_SNAP_MODE_FACE:
bvhtree_from_mesh_looptri(treedata, dm, 0.0f, 4, 6);
More information about the Bf-blender-cvs
mailing list