Fix MSVC shadow local warning

This commit is contained in:
Rémi Verschelde 2023-01-31 18:06:21 +01:00
parent 8612c12be6
commit 2b710bc336
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 5 additions and 5 deletions

View File

@ -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() {