Draw selected item on top of everything else

(cherry picked from commit 16532f51ef)
This commit is contained in:
Gilles Roudière 2020-09-27 18:47:38 +02:00 committed by Rémi Verschelde
parent e496e8d318
commit 0b2913086f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3695,12 +3695,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();
VisualServer::get_singleton()->canvas_item_add_set_transform(ci, Transform2D());