From 2d4c4b6ea9947607227e55682d195ebd05d383c6 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Thu, 28 Jul 2016 14:41:15 +0200 Subject: Fix regression with str() improvements for math types --- core/math/matrix3.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'core/math/matrix3.cpp') 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 { -- cgit v1.2.3