If there are no animation frames in the model, treat its default position as

a single frame.
This commit is contained in:
Andrzej Kapolka 2014-05-21 13:56:20 -07:00
parent 8bb4ca19cd
commit 906e082215

View file

@ -1442,7 +1442,7 @@ FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping)
}
// figure the number of animation frames from the curves
int frameCount = 0;
int frameCount = 1;
foreach (const AnimationCurve& curve, animationCurves) {
frameCount = qMax(frameCount, curve.values.size());
}