Fix potential NULL dereference in mesh sequence cache modifier.

Reported by coverity.
This commit is contained in:
Bastien Montagne
2016-11-18 12:03:12 +01:00
parent b859fef670
commit 841c4deed7

View File

@@ -114,6 +114,10 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
mcmd->reader,
ob,
mcmd->object_path);
if (!mcmd->reader) {
modifier_setError(md, "Could not create Alembic reader for file %s", cache_file->filepath);
return dm;
}
}
DerivedMesh *result = ABC_read_mesh(mcmd->reader,