mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 19:32:58 +02:00
Use QVector resize() instead of reserve() to silence Debug builds about size not being set.
Causes unneeded default initialization, but no obvious way to avoid.
This commit is contained in:
parent
b079e3283e
commit
0a34745ff9
1 changed files with 3 additions and 3 deletions
|
@ -1777,13 +1777,13 @@ void Blender::run() {
|
|||
|
||||
// allocate the required sizes
|
||||
QVector<int> blendedMeshSizes;
|
||||
blendedMeshSizes.reserve(numMeshes);
|
||||
blendedMeshSizes.resize(numMeshes);
|
||||
|
||||
QVector<BlendshapeOffset> packedBlendshapeOffsets;
|
||||
packedBlendshapeOffsets.reserve(numBlendshapeOffsets);
|
||||
packedBlendshapeOffsets.resize(numBlendshapeOffsets);
|
||||
|
||||
QVector<BlendshapeOffsetUnpacked> unpackedBlendshapeOffsets;
|
||||
unpackedBlendshapeOffsets.reserve(maxBlendshapeOffsets); // reuse for all meshes
|
||||
unpackedBlendshapeOffsets.resize(maxBlendshapeOffsets); // reuse for all meshes
|
||||
|
||||
int offset = 0;
|
||||
for (auto meshIter = _hfmModel->meshes.cbegin(); meshIter != _hfmModel->meshes.cend(); ++meshIter) {
|
||||
|
|
Loading…
Reference in a new issue