Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/bvhutils.c
| Context not available. | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "CLG_log.h" | |||||
| static CLG_LogRef LOG = { "bke.bvhutils" }; | |||||
| static ThreadRWMutex cache_rwlock = BLI_RWLOCK_INITIALIZER; | static ThreadRWMutex cache_rwlock = BLI_RWLOCK_INITIALIZER; | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| Context not available. | |||||
| if (data_cp.tree != NULL) { | if (data_cp.tree != NULL) { | ||||
| #ifdef DEBUG | #ifdef DEBUG | ||||
| if (BLI_bvhtree_get_tree_type(data_cp.tree) != tree_type) { | if (BLI_bvhtree_get_tree_type(data_cp.tree) != tree_type) { | ||||
| printf("tree_type %d obtained instead of %d\n", | CLOG_WARN(&LOG, "tree_type %d obtained instead of %d", | ||||
| BLI_bvhtree_get_tree_type(data_cp.tree), tree_type); | BLI_bvhtree_get_tree_type(data_cp.tree), tree_type); | ||||
| } | } | ||||
| #endif | #endif | ||||
| data_cp.cached = true; | data_cp.cached = true; | ||||
| Context not available. | |||||