diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-30 23:09:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 23:09:49 +0100 |
commit | 4e753971c3ff14398f93cddbd1a683bbebad931e (patch) | |
tree | a927f70f71fb9720bb6ee16cdee2c3ce7d0d8a3a | |
parent | a6ddc5a9a49c4e8ee6847fe1ac4be1a92bed01b8 (diff) | |
parent | 37d2b17f88e92782cc18bda4f6b2f779442156dd (diff) |
Merge pull request #12351 from groud/fix_item_list_selection_clipping
Fixes the selection rect in item_list drawn not clipped
-rw-r--r-- | scene/gui/item_list.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 623a110263..3203b38d40 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -781,9 +781,7 @@ 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) { @@ -1429,7 +1427,6 @@ ItemList::ItemList() { allow_rmb_select = false; icon_scale = 1.0f; - set_clip_contents(true); } ItemList::~ItemList() { |