diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-07-27 14:09:20 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-07-27 14:26:21 +0300 |
commit | 2b8f50e1d4130c9eba2a896e595d25212a808480 (patch) | |
tree | cef1ff6e337bdb41ba2c41b05fde3d635a65fa22 /source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h | |
parent | 980efaf4fde6746407e849e1e5e1f9f0c0b33322 (diff) |
Depsgraph: Fix crash happening in copy-on-write of images
Was a threading conflict or so in the cache limiter, and in fact
we don't even want images to be copied.
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h index 4ae1de3fdbc..52fe58e3391 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h +++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.h @@ -92,4 +92,13 @@ void deg_tag_copy_on_write_id(struct ID *id_cow, const struct ID *id_orig); */ bool deg_copy_on_write_is_expanded(const struct ID *id_cow); +/* Check whether copy-on-write datablock is needed for given ID. + * + * There are some exceptions on datablocks which are covered by dependency graph + * but which we don't want to start duplicating. + * + * This includes images. + */ +bool deg_copy_on_write_is_needed(const ID *id_orig); + } // namespace DEG |