소스 검색

Fix crash when importing sub-scenes

Franklin Sobrinho 9 년 전
부모
커밋
cb7db2d430
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;