diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-31 10:58:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 10:58:53 +0100 |
commit | a1ffadb9538cf8cf6f790ec5287581a8d5fca33c (patch) | |
tree | 95c627f98513a762a6a0b78845d38ffd195ad4b0 /scene | |
parent | 91adb58d3de1cb22196203d0184374ff034bf950 (diff) |
Revert "Fixes the selection rect in item_list drawn not clipped"
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/item_list.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 3203b38d40..623a110263 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -781,7 +781,9 @@ void ItemList::_notification(int p_what) { } if (has_focus()) { + VisualServer::get_singleton()->canvas_item_add_clip_ignore(get_canvas_item(), true); draw_style_box(get_stylebox("bg_focus"), Rect2(Point2(), size)); + VisualServer::get_singleton()->canvas_item_add_clip_ignore(get_canvas_item(), false); } if (shape_changed) { @@ -1427,6 +1429,7 @@ ItemList::ItemList() { allow_rmb_select = false; icon_scale = 1.0f; + set_clip_contents(true); } ItemList::~ItemList() { |