Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/moto/include/MT_Point3.inl')
-rw-r--r--intern/moto/include/MT_Point3.inl5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/moto/include/MT_Point3.inl b/intern/moto/include/MT_Point3.inl
index e6ce4f9d9a3..081a8195694 100644
--- a/intern/moto/include/MT_Point3.inl
+++ b/intern/moto/include/MT_Point3.inl
@@ -15,6 +15,11 @@ GEN_INLINE MT_Point3& MT_Point3::operator=(const MT_Vector3& v) {
return *this;
}
+GEN_INLINE MT_Point3& MT_Point3::operator=(const MT_Point3& v) {
+ m_co[0] = v[0]; m_co[1] = v[1]; m_co[2] = v[2];
+ return *this;
+}
+
GEN_INLINE MT_Scalar MT_Point3::distance(const MT_Point3& p) const {
return (p - *this).length();
}