mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
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:
parent
2d2980c8f2
commit
a17359d2df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue