From 0b47f1be8c94a4a037980d7d3f1f79559c09ce58 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 9 May 2021 13:11:16 +0200 Subject: Fix EditorPropertyResource focus outline being drawn behind the preview --- editor/editor_properties.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 47c0e31da6..6638962c72 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -3254,6 +3254,8 @@ EditorPropertyResource::EditorPropertyResource() { preview->set_offset(SIDE_TOP, 1); preview->set_offset(SIDE_BOTTOM, -1); preview->set_offset(SIDE_RIGHT, -1); + // This is required to draw the focus outline in front of the preview, rather than behind. + preview->set_draw_behind_parent(true); assign->add_child(preview); assign->connect("gui_input", callable_mp(this, &EditorPropertyResource::_button_input)); -- cgit v1.2.3