Depsgraph: Tag evaluated mesh as such

Helps troubleshooting.
This commit is contained in:
Sergey Sharybin 2017-11-21 15:33:48 +01:00
parent 0debe33617
commit 6ee7a02558
2 changed files with 6 additions and 3 deletions

View File

@ -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..

View File

@ -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) */