Sfoglia il codice sorgente

Merge pull request #105918 from DarkMessiah/fix_tree_item_custom_bg_color

Fix background size calculation in TreeItem
Thaddeus Crews 2 mesi fa
parent
commit
4e507792f2
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0 3
      scene/gui/tree.cpp

+ 0 - 3
scene/gui/tree.cpp

@@ -2391,9 +2391,6 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
 				if (i == 0) {
 					r.position.x = p_draw_ofs.x;
 					r.size.x = item_width + ofs;
-				} else {
-					r.position.x -= theme_cache.h_separation;
-					r.size.x += theme_cache.h_separation;
 				}
 				if (rtl) {
 					r.position.x = get_size().width - r.position.x - r.size.x;