Browse Source

Merge pull request #4052 from TheHX/issue-4048

Fix crash when importing sub-scenes
Rémi Verschelde 9 năm trước cách đây
mục cha
commit
bb22db5704
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/editor/editor_sub_scene.cpp

+ 1 - 1
tools/editor/editor_sub_scene.cpp

@@ -219,7 +219,7 @@ EditorSubScene::EditorSubScene() {
 	tree = memnew( Tree );
 	tree->set_v_size_flags(SIZE_EXPAND_FILL);
 	vb->add_margin_child("Import From Node:",tree,true);
-	tree->connect("item_activated",this,"_ok");
+	tree->connect("item_activated",this,"_ok",make_binds(),CONNECT_DEFERRED);
 
 	file_dialog = memnew( EditorFileDialog );
 	List<String> extensions;