diff --git a/src/common/ml_mesh_type.h b/src/common/ml_mesh_type.h index 6b139ccaa..6a194b968 100644 --- a/src/common/ml_mesh_type.h +++ b/src/common/ml_mesh_type.h @@ -157,8 +157,8 @@ public : { } - CMeshO(CMeshO& oth) : CMeshO() { - vcg::tri::Append::Mesh(*this, oth); + CMeshO(const CMeshO& oth) : CMeshO() { + vcg::tri::Append::MeshAppendConst(*this, oth); } //TODO need to change this @@ -169,9 +169,9 @@ public : } //TODO should change also this and use the copy&swap idiom - CMeshO& operator=(CMeshO& oth) { + CMeshO& operator=(const CMeshO& oth) { Clear(); - vcg::tri::Append::Mesh(*this, oth); + vcg::tri::Append::MeshCopyConst(*this, oth); return *this; } };