summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2020-09-27 18:47:38 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2020-09-27 18:47:38 +0200
commit16532f51ef77fb57f6d60545098ce7c90172e573 (patch)
treeb644b13a820e8acadd762447d5afe76e4f87491d /editor/plugins
parent70e54e449909c2f2b08fb4bd23be41abebe82f64 (diff)
Draw selected item on top of everything else
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 9427f82f9e..d582de4245 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -3824,12 +3824,12 @@ void CanvasItemEditor::_draw_viewport() {
_draw_grid();
_draw_ruler_tool();
- _draw_selection();
_draw_axis();
if (editor->get_edited_scene()) {
_draw_locks_and_groups(editor->get_edited_scene());
_draw_invisible_nodes_positions(editor->get_edited_scene());
}
+ _draw_selection();
RID ci = viewport->get_canvas_item();
RenderingServer::get_singleton()->canvas_item_add_set_transform(ci, Transform2D());