Pārlūkot izejas kodu

Merge pull request #46216 from Chaosus/fix_scenetree_timeout

Fix connecting signal to `SceneTreeEditor::update_timer`
Rémi Verschelde 4 gadi atpakaļ
vecāks
revīzija
13303dd56d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      editor/scene_tree_editor.cpp

+ 1 - 1
editor/scene_tree_editor.cpp

@@ -1194,7 +1194,7 @@ SceneTreeEditor::SceneTreeEditor(bool p_label, bool p_can_rename, bool p_can_ope
 	blocked = 0;
 	blocked = 0;
 
 
 	update_timer = memnew(Timer);
 	update_timer = memnew(Timer);
-	update_timer->connect("timeout", callable_mp(this, &SceneTreeEditor::_update_tree));
+	update_timer->connect("timeout", callable_mp(this, &SceneTreeEditor::_update_tree), varray(false));
 	update_timer->set_one_shot(true);
 	update_timer->set_one_shot(true);
 	update_timer->set_wait_time(0.5);
 	update_timer->set_wait_time(0.5);
 	add_child(update_timer);
 	add_child(update_timer);