Fix EditorPropertyResource focus outline being drawn behind the preview

(cherry picked from commit 0b47f1be8c)
This commit is contained in:
Hugo Locurcio 2021-05-09 13:11:16 +02:00 committed by Rémi Verschelde
parent 0a7193c5f4
commit 7eacb604b1
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3022,6 +3022,8 @@ EditorPropertyResource::EditorPropertyResource() {
preview->set_margin(MARGIN_TOP, 1);
preview->set_margin(MARGIN_BOTTOM, -1);
preview->set_margin(MARGIN_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", this, "_button_input");