summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Vector3.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index 2c79f9ff1..4a1440b32 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -163,8 +163,16 @@ public:
z *= a_v;
}
- // tolua_begin
+ template <typename T2> inline Vector3<T> & operator =(const Vector3<T2> & a_Rhs)
+ {
+ x = (T)a_Rhs.x;
+ y = (T)a_Rhs.y;
+ z = (T)a_Rhs.z;
+ return *this;
+ }
+ // tolua_begin
+
inline Vector3<T> operator + (const Vector3<T>& a_Rhs) const
{
return Vector3<T>(