diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-30 18:31:59 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-01 10:17:17 +0300 |
commit | 2bd2a2ac0334e428b3b5e8340737d0992a2c3d3a (patch) | |
tree | e84854e3c4614414fb545129f3cd8055a50416d7 /source/blender/depsgraph | |
parent | 8cf9c58906f756bb556e0f290c9d005455502a6c (diff) |
Depsgraph: Extra sanity checks for copy-on-write tagging
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc index 3f80bf00be2..cb03c0dc92c 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc @@ -800,6 +800,8 @@ bool deg_validate_copy_on_write_datablock(ID *id_cow) void deg_tag_copy_on_write_id(ID *id_cow, const ID *id_orig) { + BLI_assert(id_cow != id_orig); + BLI_assert((id_orig->tag & LIB_TAG_COPY_ON_WRITE) == 0); id_cow->tag |= LIB_TAG_COPY_ON_WRITE; id_cow->orig_id = (ID *)id_orig; } |