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().
This commit is contained in:
Sybren A. Stüvel 2017-04-26 13:01:19 +02:00
parent 87f483debb
commit ff1f115706

@ -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);