diff --git a/src/Mod/Mesh/App/Core/KDTree.cpp b/src/Mod/Mesh/App/Core/KDTree.cpp index 2620f8565d..a0be600239 100644 --- a/src/Mod/Mesh/App/Core/KDTree.cpp +++ b/src/Mod/Mesh/App/Core/KDTree.cpp @@ -45,6 +45,10 @@ struct Point3d { } + Point3d(Point3d&& pnt) : p(pnt.p), i(pnt.i) + { + } + ~Point3d() { } @@ -70,6 +74,12 @@ struct Point3d this->i = other.i; } + inline void operator=(Point3d&& other) + { + this->p = other.p; + this->i = other.i; + } + Base::Vector3f p; PointIndex i; };