Fix compile errors for when WITH_ALEMBIC is OFF.

This commit is contained in:
2016-10-30 03:42:46 +01:00
parent b2974d7ab7
commit ce785868a5
5 changed files with 12 additions and 0 deletions

View File

@@ -212,7 +212,9 @@ void BKE_cachefile_clean(Scene *scene, CacheFile *cache_file)
MeshSeqCacheModifierData *mcmd = (MeshSeqCacheModifierData *)md;
if (cache_file == mcmd->cache_file) {
#ifdef WITH_ALEMBIC
CacheReader_free(mcmd->reader);
#endif
mcmd->reader = NULL;
mcmd->object_path[0] = '\0';
}
@@ -226,7 +228,9 @@ void BKE_cachefile_clean(Scene *scene, CacheFile *cache_file)
bTransformCacheConstraint *data = con->data;
if (cache_file == data->cache_file) {
#ifdef WITH_ALEMBIC
CacheReader_free(data->reader);
#endif
data->reader = NULL;
data->object_path[0] = '\0';
}

View File

@@ -4401,7 +4401,9 @@ static void transformcache_free(bConstraint *con)
}
if (data->reader) {
#ifdef WITH_ALEMBIC
CacheReader_free(data->reader);
#endif
}
}