Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano <germano.costa@ig.com.br>2018-05-13 01:43:36 +0300
committerGermano <germano.costa@ig.com.br>2018-05-13 01:43:36 +0300
commit9c212399c6da277414eeba56347bedcbed458280 (patch)
tree857d579be06dbdbcb370e913fdd309f22c73768e /source/blender/blenkernel/BKE_bvhutils.h
parent0d9f77d954273c341fe0c017284c1476680eefd9 (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.h2
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);