diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-07-19 16:50:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-07-19 17:21:12 +0300 |
commit | 53c1d15675bf6240369ee0dbdc6f06780f7b68ba (patch) | |
tree | f2cadec793c170f57bf7b908d9b25e964cc58779 /source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | |
parent | 496d18614f1487c62f55dde13b211e7d12fc45ab (diff) |
Depsgraph: Fix particle system freeing accessing freed particle settings
Need to ensure CoW IDs are freed in the right order.
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 5 |
1 files changed, 5 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 f7e08915531..10547da2505 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 @@ -742,4 +742,9 @@ void deg_tag_copy_on_write_id(ID *id_cow, const ID *id_orig) id_cow->newid = (ID *)id_orig; } +bool deg_copy_on_write_is_expanded(const struct ID *id_cow) +{ + return check_datablock_expanded(id_cow); +} + } // namespace DEG |