소스 검색

Fix crash when click icon while editing node name

volzhs 8 년 전
부모
커밋
3ae0ffa182
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/gui/tree.cpp

+ 1 - 0
scene/gui/tree.cpp

@@ -848,6 +848,7 @@ void Tree::update_cache() {
 	cache.title_button_color = get_color("title_button_color");
 
 	v_scroll->set_custom_step(cache.font->get_height());
+	cache.click_item=get_selected();
 
 }