diff options
-rw-r--r-- | source/blender/editors/transform/transform_snap_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 2d7629604b1..62ca4e515a5 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -786,7 +786,7 @@ static bool snapDerivedMesh( /* the tree is owned by the DM and may have been freed since we last used! */ if (treedata && treedata->tree) { - if (treedata->cached && !bvhcache_has_tree(&dm->bvhCache, treedata->tree)) { + if (treedata->cached && !bvhcache_has_tree(dm->bvhCache, treedata->tree)) { free_bvhtree_from_mesh(treedata); } } |