Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2017-02-25 09:08:14 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2017-02-25 09:08:42 +0300
commit2c4564b044ada4f7f5568735c197afce888d43df (patch)
tree39a069202e27cc0639f9c70999a19100186b38e2
parenta0b8a9fe6816f1e704b2edbeccddf1e3285e4520 (diff)
Alembic: avoid crashing when reading non-indexed UV params.
-rw-r--r--source/blender/alembic/intern/abc_customdata.cc5
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);