diff --git a/FileOVMB.cc b/FileOVMB.cc index 2dbb92f5464cdac7f7c212e397b043d74baf3338..06e0953edfeda39f4b746d6c0f21b8b54add478e 100644 --- a/FileOVMB.cc +++ b/FileOVMB.cc @@ -164,7 +164,8 @@ int FileOVMBPlugin::loadObject(QString _filename) emit addEmptyObject(DATA_TETRAHEDRAL_MESH, id); auto *mo = PluginFunctions::tetrahedralMeshObject(id); obj = mo; - *mo->mesh() = std::move(mesh); + *mo->mesh() = mesh; // TODO: use move assignment when we have it implemented in OVM + mo->recreateAttributes(); } } else if (*topo_type == TopoType::Hexahedral) { HexahedralMesh mesh; @@ -173,7 +174,8 @@ int FileOVMBPlugin::loadObject(QString _filename) emit addEmptyObject(DATA_HEXAHEDRAL_MESH, id); auto *mo = PluginFunctions::hexahedralMeshObject(id); obj = mo; - *mo->mesh() = std::move(mesh); + *mo->mesh() = mesh; // TODO: use move assignment when we have it implemented in OVM + mo->recreateAttributes(); } } else if (*topo_type == TopoType::Polyhedral) { PolyhedralMesh mesh; @@ -182,7 +184,8 @@ int FileOVMBPlugin::loadObject(QString _filename) emit addEmptyObject(DATA_POLYHEDRAL_MESH, id); auto *mo = PluginFunctions::polyhedralMeshObject(id); obj = mo; - *mo->mesh() = std::move(mesh); + *mo->mesh() = mesh; // TODO: use move assignment when we have it implemented in OVM + mo->recreateAttributes(); } } else { emit log(LOGERR, QString("Unknown topology in file %1!").arg(_filename));