Fix crash when opening a Blender file containing Alembic data.

Was also affecting object linking.
This commit is contained in:
Kévin Dietrich 2016-12-07 23:01:51 +01:00
parent a63108efb1
commit 62a2ed97ba
Notes: blender-bot 2023-02-14 08:49:53 +01:00
Referenced by commit b91edd61d0, Fix T50287: Blender crashes when open a blend that contains an alembic
Referenced by issue #50264, Append Grease pencil
Referenced by issue #50235, export UV layout opacity
Referenced by issue #50227, Alembic uv export/load issue
Referenced by issue #50209, Is glossy ray broken in light path node
3 changed files with 6 additions and 0 deletions

View File

@ -4404,6 +4404,7 @@ static void transformcache_free(bConstraint *con)
#ifdef WITH_ALEMBIC
CacheReader_free(data->reader);
#endif
data->reader = NULL;
}
}

View File

@ -5302,6 +5302,10 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
csmd->delta_cache = NULL;
csmd->delta_cache_num = 0;
}
else if (md->type == eModifierType_MeshSequenceCache) {
MeshSeqCacheModifierData *msmcd = (MeshSeqCacheModifierData *)md;
msmcd->reader = NULL;
}
}
}

View File

@ -81,6 +81,7 @@ static void freeData(ModifierData *md)
#ifdef WITH_ALEMBIC
CacheReader_free(mcmd->reader);
#endif
mcmd->reader = NULL;
}
}