diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-18 13:19:39 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-18 14:57:04 +0300 |
commit | 86288725dfae924c933ba27b17107824aec9c324 (patch) | |
tree | c20634e6ee25dbbecffcf906dc1c4bddf8d8fd13 /source/blender/alembic | |
parent | d24578b676d28ddbd8440efc1b6622452585b5c2 (diff) |
Alembic import: fall back to linear when variable order array is invalid.
This seems like more sane behaviour than to keep the orderu at the
invalid default value 0.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_curves.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_curves.cc b/source/blender/alembic/intern/abc_curves.cc index 58b8d7e05cd..e6a5b289c6b 100644 --- a/source/blender/alembic/intern/abc_curves.cc +++ b/source/blender/alembic/intern/abc_curves.cc @@ -258,8 +258,8 @@ void read_curve_sample(Curve *cu, const ICurvesSchema &schema, const float time) case Alembic::AbcGeom::kVariableOrder: if (orders && orders->size() > i) { nu->orderu = static_cast<short>((*orders)[i]); + break; } - break; case Alembic::AbcGeom::kLinear: default: nu->orderu = 2; |