diff --git a/libraries/model-baker/src/model-baker/CollectShapeVerticesTask.cpp b/libraries/model-baker/src/model-baker/CollectShapeVerticesTask.cpp index 8aeb0145d5..36c2aa04a6 100644 --- a/libraries/model-baker/src/model-baker/CollectShapeVerticesTask.cpp +++ b/libraries/model-baker/src/model-baker/CollectShapeVerticesTask.cpp @@ -33,7 +33,7 @@ void CollectShapeVerticesTask::run(const baker::BakeContextPointer& context, con const auto& reweightedDeformers = input.get4(); auto& shapeVerticesPerJoint = output; - shapeVerticesPerJoint.reserve(joints.size()); + shapeVerticesPerJoint.resize(joints.size()); std::vector> vertexSourcesPerJoint; vertexSourcesPerJoint.resize(joints.size()); for (size_t i = 0; i < shapes.size(); ++i) {