diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2017-02-07 17:03:10 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2017-02-07 17:03:10 +0300 |
commit | 03be3102c7b2322c14d7b2bf61c6c2183e3ade3a (patch) | |
tree | b64c726707b901e64714a9b700865de754b19cba /source | |
parent | 03544eccb40daaf0d48fc8272ed7d392b7e29a31 (diff) |
Param `is_cached` not being used in` bvhtree_from_mesh_edges_setup_data`
This could cause bugs in the memory release
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/bvhutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c index 23b730c93cb..d0e0c82e3be 100644 --- a/source/blender/blenkernel/intern/bvhutils.c +++ b/source/blender/blenkernel/intern/bvhutils.c @@ -701,7 +701,7 @@ static void bvhtree_from_mesh_edges_setup_data( data->tree = tree; if (data->tree) { - data->cached = true; + data->cached = is_cached; data->nearest_callback = mesh_edges_nearest_point; data->raycast_callback = mesh_edges_spherecast; |