Skip to content

Commit

Permalink
Fix EditorPropertyResource focus outline being drawn behind the preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed May 9, 2021
1 parent 7050e4d commit 0b47f1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0b47f1b

Please sign in to comment.