summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorFabian Keller <github.100.fkeller@spamgourmet.com>2022-07-16 11:47:54 +0200
committerFabian Keller <github.100.fkeller@spamgourmet.com>2022-07-16 11:47:54 +0200
commit2bf9e6090c6d121bc1fddf4d82319a524ad0d963 (patch)
tree68a0f9628fd99e7b006b88471a5c4c00df3a5971 /scene/main
parentae5668f81e9ed7ae9e9a13b120d89de884b718be (diff)
rename translate(d) to translate(d)_local in Transform 2D/3D
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index 73e8f537d9..bd72858ae6 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -1516,7 +1516,7 @@ void Window::_validate_property(PropertyInfo &property) const {
Transform2D Window::get_screen_transform() const {
Transform2D embedder_transform = Transform2D();
if (_get_embedder()) {
- embedder_transform.translate(get_position());
+ embedder_transform.translate_local(get_position());
embedder_transform = _get_embedder()->get_screen_transform() * embedder_transform;
}
return embedder_transform * Viewport::get_screen_transform();