diff --git a/src/Magnum/SceneTools/sceneconverter.cpp b/src/Magnum/SceneTools/sceneconverter.cpp index 7fbdcfda0..86e512e3b 100644 --- a/src/Magnum/SceneTools/sceneconverter.cpp +++ b/src/Magnum/SceneTools/sceneconverter.cpp @@ -858,6 +858,8 @@ well, the IDs reference attributes of the first mesh.)") args.value("remove-duplicate-vertices-fuzzy") || args.arrayValueCount("mesh-converter")) { + arrayReserve(meshes, importer->meshCount()); + for(UnsignedInt i = 0; i != importer->meshCount(); ++i) { Containers::Optional mesh; {