Sfoglia il codice sorgente

Fix Tree::get_column_at_position crash

Haoyu Qiu 4 anni fa
parent
commit
c8efcf81d2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      scene/gui/tree.cpp

+ 2 - 0
scene/gui/tree.cpp

@@ -4334,6 +4334,8 @@ Tree::Tree() {
 	set_mouse_filter(MOUSE_FILTER_STOP);
 
 	set_clip_contents(true);
+
+	update_cache();
 }
 
 Tree::~Tree() {