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:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-18 13:19:39 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-18 14:57:04 +0300
commit86288725dfae924c933ba27b17107824aec9c324 (patch)
treec20634e6ee25dbbecffcf906dc1c4bddf8d8fd13
parentd24578b676d28ddbd8440efc1b6622452585b5c2 (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.
-rw-r--r--source/blender/alembic/intern/abc_curves.cc2
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;