diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-07-28 14:41:15 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2016-07-28 14:58:12 +0200 |
commit | 2d4c4b6ea9947607227e55682d195ebd05d383c6 (patch) | |
tree | 62ad1fb1048d0227db8d8a3fac273327cf2f0b1f /core/math/matrix3.cpp | |
parent | 1dae31f55459439cbb51eaa8fd9070873107a836 (diff) |
Fix regression with str() improvements for math types
Diffstat (limited to 'core/math/matrix3.cpp')
-rw-r--r-- | core/math/matrix3.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/core/math/matrix3.cpp b/core/math/matrix3.cpp index 7b811c245c..71e6b62212 100644 --- a/core/math/matrix3.cpp +++ b/core/math/matrix3.cpp @@ -233,26 +233,19 @@ bool Matrix3::operator!=(const Matrix3& p_matrix) const { Matrix3::operator String() const { - String mtx("("); + String mtx; for (int i=0;i<3;i++) { - if (i!=0) - mtx+=", "; - - mtx+="("; - for (int j=0;j<3;j++) { - if (j!=0) + if (i!=0 || j!=0) mtx+=", "; mtx+=rtos( elements[i][j] ); } - - mtx+=")"; } - return mtx+")"; + return mtx; } Matrix3::operator Quat() const { |