diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-17 04:44:48 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-17 04:44:48 +0400 |
commit | b16d1c7bde1eb491f859c38d9cd26a4e23a6501f (patch) | |
tree | c4439e8dac8b3d3d4cfd86d3610774278cc15876 /intern/moto/include | |
parent | b07c5f20962420095c2b25f2bbfdc9477ff15f22 (diff) |
Fix m_type used uninitialised in MT_Transform.
Diffstat (limited to 'intern/moto/include')
-rw-r--r-- | intern/moto/include/MT_Transform.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/moto/include/MT_Transform.h b/intern/moto/include/MT_Transform.h index e774b125d0e..5b95f81b9dd 100644 --- a/intern/moto/include/MT_Transform.h +++ b/intern/moto/include/MT_Transform.h @@ -61,12 +61,16 @@ public: MT_Transform() {} MT_Transform(const float *m) { setValue(m); } MT_Transform(const double *m) { setValue(m); } - MT_Transform(const MT_Point3& p, const MT_Quaternion& q) { + MT_Transform(const MT_Point3& p, const MT_Quaternion& q) + : m_type(IDENTITY) + { setOrigin(p); setRotation(q); } - MT_Transform(const MT_Point3& p, const MT_Matrix3x3& m) { + MT_Transform(const MT_Point3& p, const MT_Matrix3x3& m) + : m_type(IDENTITY) + { setOrigin(p); setBasis(m); } |