summaryrefslogtreecommitdiffstats
path: root/core/math
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-11-22 21:44:27 +0100
committerkobewi <kobewi4e@gmail.com>2024-11-22 21:44:30 +0100
commite210313045cc4de77c654f7cabf4c810c957f3fe (patch)
tree8fd176a1aa07c996c1c90818689da877cc9dd858 /core/math
parentf952bfe9985ad8f507cc29b2c7601bbba18b8039 (diff)
downloadredot-engine-e210313045cc4de77c654f7cabf4c810c957f3fe.tar.gz
Fix stringification of Vector4
Diffstat (limited to 'core/math')
-rw-r--r--core/math/vector4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/vector4.cpp b/core/math/vector4.cpp
index b6b914f36d..8ac2c4bf1f 100644
--- a/core/math/vector4.cpp
+++ b/core/math/vector4.cpp
@@ -213,7 +213,7 @@ Vector4 Vector4::clampf(real_t p_min, real_t p_max) const {
}
Vector4::operator String() const {
- return "(" + String::num_real(x, false) + ", " + String::num_real(y, false) + ", " + String::num_real(z, false) + ", " + String::num_real(w, false) + ")";
+ return "(" + String::num_real(x, true) + ", " + String::num_real(y, true) + ", " + String::num_real(z, true) + ", " + String::num_real(w, true) + ")";
}
static_assert(sizeof(Vector4) == 4 * sizeof(real_t));