diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-06-15 18:14:48 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-06-15 18:15:42 +0300 |
commit | ed3d693cb181c21c8d00b6d2aa734e25c2d65cda (patch) | |
tree | e44c3ea635efd5ee6c3b694bd856eb8f7d5de7a3 /source/blender/depsgraph/intern/depsgraph.h | |
parent | 43d22d80e72d1a1bf49d33fc4f8bd1a031e3358b (diff) |
Dependency graph fixes for RigidBodyWorld
- rbw->group added to the depsgraph.
- Mesh evaluation added when necessary.
- Prevent of double-free by freeing the scene before objects.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.h')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h index 3c1233cd5bb..a69be39c50b 100644 --- a/source/blender/depsgraph/intern/depsgraph.h +++ b/source/blender/depsgraph/intern/depsgraph.h @@ -38,6 +38,8 @@ #include <stdlib.h> +#include "DNA_ID.h" /* for ID_Type */ + #include "BKE_library.h" /* for MAX_LIBARRAY */ #include "BLI_threads.h" /* for SpinLock */ @@ -128,6 +130,7 @@ struct Depsgraph { IDDepsNode *find_id_node(const ID *id) const; IDDepsNode *add_id_node(ID *id, ID *id_cow_hint = NULL); void clear_id_nodes(); + void clear_id_nodes_conditional(const std::function <bool (ID_Type id_type)>& filter); /* Add new relationship between two nodes. */ DepsRelation *add_new_relation(OperationDepsNode *from, |