Don't use make_unique

pull/3329/head
Malcolm Tyrrell 2020-07-15 15:47:25 +01:00
parent e51e07982d
commit 04df5f8b1e
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ void glTF2Importer::ImportMeshes(glTF2::Asset &r) {
for (unsigned int p = 0; p < mesh.primitives.size(); ++p) { for (unsigned int p = 0; p < mesh.primitives.size(); ++p) {
Mesh::Primitive &prim = mesh.primitives[p]; Mesh::Primitive &prim = mesh.primitives[p];
meshes.emplace_back(std::make_unique<aiMesh>()); aiMesh *aim = new aiMesh();
aiMesh *aim = meshes.back().get(); meshes.push_back(std::unique_ptr<aiMesh>(aim));
aim->mName = mesh.name.empty() ? mesh.id : mesh.name; aim->mName = mesh.name.empty() ? mesh.id : mesh.name;