summaryrefslogtreecommitdiff
path: root/core/math/transform_2d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-13 11:58:24 +0200
committerGitHub <noreply@github.com>2021-06-13 11:58:24 +0200
commit600b4c9c7b11622e4eb5ed1e5fd70b3d3f66170e (patch)
tree1b246c4e0efba31a91fbfafa15380f99c45708f0 /core/math/transform_2d.cpp
parentf4ab76444fc166c592b9b11cb9bd51f3b51a2e77 (diff)
parent554c776e08c9ee35fa9e2677e02f4005c11ddbc0 (diff)
Merge pull request #34668 from aaronfranke/to-string
[Core] Reformat structure string operators
Diffstat (limited to 'core/math/transform_2d.cpp')
-rw-r--r--core/math/transform_2d.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/math/transform_2d.cpp b/core/math/transform_2d.cpp
index 9189234d04..0140f31b8a 100644
--- a/core/math/transform_2d.cpp
+++ b/core/math/transform_2d.cpp
@@ -277,5 +277,7 @@ Transform2D Transform2D::interpolate_with(const Transform2D &p_transform, real_t
}
Transform2D::operator String() const {
- return String(String() + elements[0] + ", " + elements[1] + ", " + elements[2]);
+ return "[X: " + elements[0].operator String() +
+ ", Y: " + elements[1].operator String() +
+ ", O: " + elements[2].operator String() + "]";
}