diff options
Diffstat (limited to 'source/blender/io/alembic/intern/abc_customdata.cc')
-rw-r--r-- | source/blender/io/alembic/intern/abc_customdata.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/io/alembic/intern/abc_customdata.cc b/source/blender/io/alembic/intern/abc_customdata.cc index 830ec731e20..4e2dcc9b8cd 100644 --- a/source/blender/io/alembic/intern/abc_customdata.cc +++ b/source/blender/io/alembic/intern/abc_customdata.cc @@ -545,6 +545,12 @@ void read_generated_coordinates(const ICompoundProperty &prop, const size_t totvert = abc_ocro.get()->size(); Mesh *mesh = config.mesh; + if (totvert != mesh->totvert) { + /* Either the data is somehow corrupted, or we have a dynamic simulation where only the ORCOs + * for the first frame were exported. */ + return; + } + void *cd_data; if (CustomData_has_layer(&mesh->vdata, CD_ORCO)) { cd_data = CustomData_get_layer(&mesh->vdata, CD_ORCO); |