Merge pull request #48582 from Calinou/editor-resource-preview-fix-focus-outline

Fix EditorPropertyResource focus outline being drawn behind the preview
This commit is contained in:
Rémi Verschelde 2021-05-09 14:20:01 +02:00 committed by GitHub
commit 8fa82c7226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));