diff --git a/src/Magnum/SceneTools/sceneconverter.cpp b/src/Magnum/SceneTools/sceneconverter.cpp index 733986263..990d1d016 100644 --- a/src/Magnum/SceneTools/sceneconverter.cpp +++ b/src/Magnum/SceneTools/sceneconverter.cpp @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include /** @todo remove once Arguments is std::string-free */ @@ -427,15 +426,10 @@ the first mesh.)") } /* Concatenate all meshes together */ - /** @todo some better way than having to create a whole new array of - references with the nasty NoInit, yet keeping the flexibility? */ - Containers::Array> meshReferences{NoInit, meshes.size()}; - for(std::size_t i = 0; i != meshes.size(); ++i) - meshReferences[i] = meshes[i]; /** @todo this will assert if the meshes have incompatible primitives (such as some triangles, some lines), or if they have loops/strips/fans -- handle that explicitly */ - mesh = MeshTools::concatenate(meshReferences); + mesh = MeshTools::concatenate(meshes); /* Otherwise import just one */ } else {