diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-13 01:43:36 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-13 01:43:36 +0300 |
commit | 9c212399c6da277414eeba56347bedcbed458280 (patch) | |
tree | 857d579be06dbdbcb370e913fdd309f22c73768e /source/blender/blenkernel/BKE_bvhutils.h | |
parent | 0d9f77d954273c341fe0c017284c1476680eefd9 (diff) |
BKE_bvhutils: allow caching NULL bvh_trees.
This prevents zero-leafs bvhtrees from being recalculated multiple times.
Diffstat (limited to 'source/blender/blenkernel/BKE_bvhutils.h')
-rw-r--r-- | source/blender/blenkernel/BKE_bvhutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_bvhutils.h b/source/blender/blenkernel/BKE_bvhutils.h index 09248bc2342..d79a7eae53e 100644 --- a/source/blender/blenkernel/BKE_bvhutils.h +++ b/source/blender/blenkernel/BKE_bvhutils.h @@ -194,7 +194,7 @@ enum { }; -BVHTree *bvhcache_find(BVHCache *cache, int type); +bool bvhcache_find(const BVHCache *cache, int type, BVHTree **r_tree); bool bvhcache_has_tree(const BVHCache *cache, const BVHTree *tree); void bvhcache_insert(BVHCache **cache_p, BVHTree *tree, int type); void bvhcache_free(BVHCache **cache_p); |