Fix error not using the cached BVH tree

This commit is contained in:
Campbell Barton
2016-05-06 05:17:34 +10:00
parent 0b5a0d8412
commit 46ccc54faf

View File

@@ -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);