Alembic: avoid crashing when reading non-indexed UV params.

This commit is contained in:
Kévin Dietrich 2017-02-25 07:08:14 +01:00
parent a0b8a9fe68
commit 2c4564b044

@ -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);