diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-21 17:33:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-21 17:33:48 +0300 |
commit | 6ee7a02558e80e4fb9d787c0ee25c9077c6120f8 (patch) | |
tree | 859e02f2cc394647d74e18471b40f6eea7849b43 /source | |
parent | 0debe33617a01303cc1632436c6724a8af63e91a (diff) |
Depsgraph: Tag evaluated mesh as such
Helps troubleshooting.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object_update.c | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index fbd26950256..76b72f7a308 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -353,6 +353,8 @@ void BKE_object_eval_uber_data(const EvaluationContext *eval_ctx, * something what we might want to change in the future. */ ob->data = new_mesh; + /* Special flags to help debugging. */ + new_mesh->id.tag |= LIB_TAG_COPY_ON_WRITE_EVAL; /* Save some memory by throwing DerivedMesh away. */ /* NOTE: Watch out, some tools might need it! * So keep around for now.. diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 1741aa12051..030b0808b54 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -366,13 +366,14 @@ enum { /* The datablock is a copy-on-write version. */ LIB_TAG_COPY_ON_WRITE = 1 << 15, + LIB_TAG_COPY_ON_WRITE_EVAL = 1 << 16, /* RESET_NEVER tag datablock for freeing etc. behavior (usually set when copying real one into temp/runtime one). */ - LIB_TAG_NO_MAIN = 1 << 16, /* Datablock is not listed in Main database. */ - LIB_TAG_NO_USER_REFCOUNT = 1 << 17, /* Datablock does not refcount usages of other IDs. */ + LIB_TAG_NO_MAIN = 1 << 17, /* Datablock is not listed in Main database. */ + LIB_TAG_NO_USER_REFCOUNT = 1 << 18, /* Datablock does not refcount usages of other IDs. */ /* Datablock was not allocated by standard system (BKE_libblock_alloc), do not free its memory * (usual type-specific freeing is called though). */ - LIB_TAG_NOT_ALLOCATED = 1 << 18, + LIB_TAG_NOT_ALLOCATED = 1 << 19, }; /* To filter ID types (filter_id) */ |