Alembic: avoid crashing when reading non-indexed UV params.
This commit is contained in:
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user