Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-02 15:34:19 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-02 19:09:01 +0300
commit09ea5dfd096ea4e9c2ed5c4d4b1fb4e56d7b6713 (patch)
treedd2e69b34081598cb858281b5945205d81f630c7 /source/blender/blenkernel/intern/cachefile.c
parent2062d649bf866331d27f00322008049594e9db35 (diff)
Fix assert in Alembic tests with constraints
Leave the reader to be created on the CoW object in the depsgraph evaluation, don't assign the one used for importing to the original object.
Diffstat (limited to 'source/blender/blenkernel/intern/cachefile.c')
-rw-r--r--source/blender/blenkernel/intern/cachefile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/cachefile.c b/source/blender/blenkernel/intern/cachefile.c
index 272413ece4a..2d6256f12e2 100644
--- a/source/blender/blenkernel/intern/cachefile.c
+++ b/source/blender/blenkernel/intern/cachefile.c
@@ -100,11 +100,11 @@ void BKE_cachefile_reader_open(CacheFile *cache_file,
void BKE_cachefile_reader_free(CacheFile *cache_file, struct CacheReader **reader)
{
#ifdef WITH_ALEMBIC
- if (cache_file) {
- BLI_assert(cache_file->id.tag & LIB_TAG_COPIED_ON_WRITE);
- }
-
if (*reader != NULL) {
+ if (cache_file) {
+ BLI_assert(cache_file->id.tag & LIB_TAG_COPIED_ON_WRITE);
+ }
+
CacheReader_free(*reader);
*reader = NULL;