diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-26 14:01:19 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-26 16:19:37 +0300 |
commit | ff1f1157065034e5e7212beb2b9be8173da80dff (patch) | |
tree | abb3f70e22dac84c94f36d43216b39b720dc7ad8 /source | |
parent | 87f483debb7bf2d866658ea9adcb61ad3583512a (diff) |
Fix T51280: Alembic: Crash when removing cache modifier
The calls to id_us_plus/min were unnecessary (and caused assertion
failures) as this is already taken care of by transformcache_id_looper().
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index 58ad171ee20..c3b209f2333 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -4386,20 +4386,12 @@ static void transformcache_copy(bConstraint *con, bConstraint *srccon) BLI_strncpy(dst->object_path, src->object_path, sizeof(dst->object_path)); dst->cache_file = src->cache_file; - - if (dst->cache_file) { - id_us_plus(&dst->cache_file->id); - } } static void transformcache_free(bConstraint *con) { bTransformCacheConstraint *data = con->data; - if (data->cache_file) { - id_us_min(&data->cache_file->id); - } - if (data->reader) { #ifdef WITH_ALEMBIC CacheReader_free(data->reader); |