summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-09 13:11:16 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-05-09 13:11:16 +0200
commit0b47f1be8c94a4a037980d7d3f1f79559c09ce58 (patch)
treea69a2a5dc8b1e575f8d03e09276dc688de682018
parent7050e4d3077c278bda35d21ed60d7068cc4bc9e9 (diff)
Fix EditorPropertyResource focus outline being drawn behind the preview
-rw-r--r--editor/editor_properties.cpp2
1 files changed, 2 insertions, 0 deletions
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));