Ensure a minimum of one joint-verts sets to prevent crash

A baked FBX that has no joints will cause a crash without
this.
This commit is contained in:
Simon Walton 2018-05-03 17:26:25 -07:00
parent 2d2980c8f2
commit a17359d2df

View file

@ -1602,7 +1602,7 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
// NOTE: shapeVertices are in joint-frame
std::vector<ShapeVertices> shapeVertices;
shapeVertices.resize(geometry.joints.size());
shapeVertices.resize(std::max(1, geometry.joints.size()) );
// find our special joints
geometry.leftEyeJointIndex = modelIDs.indexOf(jointEyeLeftID);