From a99dcab148ed209409f3b2479ada12d869ae84b6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 22 Jun 2018 14:42:03 +0200 Subject: Depsgraph: cache collision relations, for performance and stability. Same reasoning as effector relations in earlier commit. --- source/blender/depsgraph/DEG_depsgraph_physics.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/blender/depsgraph/DEG_depsgraph_physics.h') diff --git a/source/blender/depsgraph/DEG_depsgraph_physics.h b/source/blender/depsgraph/DEG_depsgraph_physics.h index 6bffe0c2358..c90f66838cc 100644 --- a/source/blender/depsgraph/DEG_depsgraph_physics.h +++ b/source/blender/depsgraph/DEG_depsgraph_physics.h @@ -34,15 +34,21 @@ struct Colllection; struct Depsgraph; +struct ListBase; #ifdef __cplusplus extern "C" { #endif -/* Get effector relations from collection or entire scene during evaluation, - * these are created during depsgraph relations building. */ +/* Get collision/effector relations from collection or entire scene. These + * created during depsgraph relations building and should only be accessed + * during evaluation. */ struct ListBase *DEG_get_effector_relations(const struct Depsgraph *depsgraph, struct Collection *collection); +struct ListBase *DEG_get_collision_relations(const struct Depsgraph *depsgraph, + struct Collection *collection); +struct ListBase *DEG_get_smoke_collision_relations(const struct Depsgraph *depsgraph, + struct Collection *collection); #ifdef __cplusplus } /* extern "C" */ -- cgit v1.2.3