Fixed several std::moves that had no effect, moved GCode data to heap

This commit is contained in:
Lukas Matena 2021-09-17 16:04:27 +02:00
parent 96a6c8538f
commit e01d32d01a
7 changed files with 19 additions and 19 deletions

View file

@ -817,7 +817,7 @@ private:
this->set_material_id(other.material_id());
}
// Providing a new mesh, therefore this volume will get a new unique ID assigned.
ModelVolume(ModelObject *object, const ModelVolume &other, const TriangleMesh &&mesh) :
ModelVolume(ModelObject *object, const ModelVolume &other, TriangleMesh &&mesh) :
name(other.name), source(other.source), m_mesh(new TriangleMesh(std::move(mesh))), config(other.config), m_type(other.m_type), object(object), m_transformation(other.m_transformation)
{
assert(this->id().valid());