diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 13:22:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-07-03 13:30:20 +0300 |
commit | bbeb1b2b529290b68e5c8f62820f178d50106ac3 (patch) | |
tree | 01a201ede12846c1ccaadc4ac590b45d7884dc8b /source/blender/depsgraph/intern/depsgraph.h | |
parent | 468adfa4fd9fab09f2ceeca40ab3c72e071931c6 (diff) |
Depsgraph: Use C++ style of guarded allocation of objects
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.h')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h index 9dea518b89c..ea579a4958e 100644 --- a/source/blender/depsgraph/intern/depsgraph.h +++ b/source/blender/depsgraph/intern/depsgraph.h @@ -31,6 +31,8 @@ #include <stdlib.h> +#include "MEM_guardedalloc.h" + #include "DNA_ID.h" /* for ID_Type */ #include "BKE_main.h" /* for MAX_LIBARRAY */ @@ -168,6 +170,8 @@ struct Depsgraph { /* Cached list of colliders/effectors for collections and the scene * created along with relations, for fast lookup during evaluation. */ Map<const ID *, ListBase *> *physics_relations[DEG_PHYSICS_RELATIONS_NUM]; + + MEM_CXX_CLASS_ALLOC_FUNCS("Depsgraph"); }; } // namespace deg |