summaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-04-10 20:52:55 +0200
committerkobewi <kobewi4e@gmail.com>2022-09-06 22:13:06 +0200
commitb218727599b956384c4c77446535737cbd415173 (patch)
tree754cc6e7e0459151f11357948aaca6281727ce80 /scene/main/viewport.cpp
parent0f62e357e0868ce7e7f822379027d86dd927dbca (diff)
Rename raise() to move_to_front()
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index e901f76c0a..5295de5c09 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2103,7 +2103,7 @@ void Viewport::_gui_set_drag_preview(Control *p_base, Control *p_control) {
p_control->set_as_top_level(true);
p_control->set_position(gui.last_mouse_pos);
p_base->get_root_parent_control()->add_child(p_control); // Add as child of viewport.
- p_control->raise();
+ p_control->move_to_front();
gui.drag_preview_id = p_control->get_instance_id();
}