diff options
Diffstat (limited to 'core/math/projection.cpp')
-rw-r--r-- | core/math/projection.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/core/math/projection.cpp b/core/math/projection.cpp index da28682393..4d71ef31f6 100644 --- a/core/math/projection.cpp +++ b/core/math/projection.cpp @@ -914,14 +914,10 @@ void Projection::set_light_atlas_rect(const Rect2 &p_rect) { } Projection::operator String() const { - String str; - for (int i = 0; i < 4; i++) { - for (int j = 0; j < 4; j++) { - str += String((j > 0) ? ", " : "\n") + rtos(columns[i][j]); - } - } - - return str; + return "[X: " + columns[0].operator String() + + ", Y: " + columns[1].operator String() + + ", Z: " + columns[2].operator String() + + ", W: " + columns[3].operator String() + "]"; } real_t Projection::get_aspect() const { |