diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2017-02-25 09:08:14 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2017-02-25 09:08:42 +0300 |
commit | 2c4564b044ada4f7f5568735c197afce888d43df (patch) | |
tree | 39a069202e27cc0639f9c70999a19100186b38e2 /source/blender/alembic | |
parent | a0b8a9fe6816f1e704b2edbeccddf1e3285e4520 (diff) |
Alembic: avoid crashing when reading non-indexed UV params.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_customdata.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_customdata.cc b/source/blender/alembic/intern/abc_customdata.cc index ebf1b2ba96e..0d11ab79ddd 100644 --- a/source/blender/alembic/intern/abc_customdata.cc +++ b/source/blender/alembic/intern/abc_customdata.cc @@ -327,6 +327,11 @@ static void read_custom_data_ex(const ICompoundProperty &prop, } else if (data_type == CD_MLOOPUV) { IV2fGeomParam uv_param(prop, prop_header.getName()); + + if (!uv_param.isIndexed()) { + return; + } + IV2fGeomParam::Sample sample; uv_param.getIndexed(sample, iss); |