diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 18:06:21 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 18:06:21 +0100 |
commit | 2b710bc336a02ace95eb0588f3b0744923faf004 (patch) | |
tree | 1f1aac0f2f19aeaf90e26c2b13559c6692f1d3d4 | |
parent | 8612c12be61c0bc50d9039402fe19cabadfe0b16 (diff) | |
download | redot-engine-2b710bc336a02ace95eb0588f3b0744923faf004.tar.gz |
Fix MSVC shadow local warning
-rw-r--r-- | scene/main/window.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index 1f629aaf94..b1f2bc65dc 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -2135,13 +2135,13 @@ Transform2D Window::get_popup_base_transform() const { if (is_embedding_subwindows()) { return Transform2D(); } - Transform2D window_transform; - window_transform.set_origin(get_position()); - window_transform *= Viewport::get_screen_transform(); + Transform2D popup_base_transform; + popup_base_transform.set_origin(get_position()); + popup_base_transform *= Viewport::get_screen_transform(); if (_get_embedder()) { - return _get_embedder()->get_popup_base_transform() * window_transform; + return _get_embedder()->get_popup_base_transform() * popup_base_transform; } - return window_transform; + return popup_base_transform; } void Window::_bind_methods() { |