소스 검색

Revert "Fix "Attach Node Script" inherits popup type"

This reverts commit 227238b4246d335910c364188ce9233fc70ddc65.

This dialog is used to both open and create scripts, so it needs to have
the features of the save dialog.
Rémi Verschelde 7 년 전
부모
커밋
29ae3e5f33
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/script_create_dialog.cpp

+ 1 - 1
editor/script_create_dialog.cpp

@@ -307,7 +307,7 @@ void ScriptCreateDialog::_browse_path(bool browse_parent) {
 
 	is_browsing_parent = browse_parent;
 
-	file_browse->set_mode(EditorFileDialog::MODE_OPEN_FILE);
+	file_browse->set_mode(EditorFileDialog::MODE_SAVE_FILE);
 	file_browse->set_disable_overwrite_warning(true);
 	file_browse->clear_filters();
 	List<String> extensions;