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.
This commit is contained in:
Sybren A. Stüvel 2017-04-18 12:19:39 +02:00
parent d24578b676
commit 86288725df
1 changed files with 1 additions and 1 deletions

View File

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