diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-09 14:20:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 14:20:01 +0200 |
commit | 8fa82c722694c49c75ba74d8b0e8a2240ad37513 (patch) | |
tree | e65bf461c46e3ba6e7437d2c009cbcc05590257e | |
parent | 73e5f6f6736d9879c8d7d3c0d72f6cd60dd18e3b (diff) | |
parent | 0b47f1be8c94a4a037980d7d3f1f79559c09ce58 (diff) |
Merge pull request #48582 from Calinou/editor-resource-preview-fix-focus-outline
Fix EditorPropertyResource focus outline being drawn behind the preview
-rw-r--r-- | editor/editor_properties.cpp | 2 |
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)); |