You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge branch 'master' of https://github.com/godotengine/godot
This commit is contained in:
@@ -1214,7 +1214,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||
case FILE_SAVE_SCENE:
|
||||
case FILE_SAVE_AS_SCENE: {
|
||||
|
||||
if (file->get_mode()==FileDialog::MODE_SAVE_FILE) {
|
||||
if (file->get_mode()==EditorFileDialog::MODE_SAVE_FILE) {
|
||||
|
||||
//_save_scene(p_file);
|
||||
_save_scene_with_preview(p_file);
|
||||
@@ -1224,7 +1224,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||
} break;
|
||||
|
||||
case FILE_SAVE_AND_RUN: {
|
||||
if (file->get_mode()==FileDialog::MODE_SAVE_FILE) {
|
||||
if (file->get_mode()==EditorFileDialog::MODE_SAVE_FILE) {
|
||||
|
||||
//_save_scene(p_file);
|
||||
_save_scene_with_preview(p_file);
|
||||
@@ -1449,7 +1449,7 @@ void EditorNode::_dialog_action(String p_file) {
|
||||
} break;
|
||||
default: { //save scene?
|
||||
|
||||
if (file->get_mode()==FileDialog::MODE_SAVE_FILE) {
|
||||
if (file->get_mode()==EditorFileDialog::MODE_SAVE_FILE) {
|
||||
|
||||
//_save_scene(p_file);
|
||||
_save_scene_with_preview(p_file);
|
||||
@@ -2843,7 +2843,7 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
|
||||
} break;
|
||||
case SETTINGS_ABOUT: {
|
||||
|
||||
about->popup_centered(Size2(500,130)*EDSCALE);
|
||||
about->popup_centered_minsize(Size2(500,130)*EDSCALE);
|
||||
} break;
|
||||
case SOURCES_REIMPORT: {
|
||||
|
||||
@@ -3823,6 +3823,11 @@ void EditorNode::request_instance_scene(const String &p_path) {
|
||||
|
||||
}
|
||||
|
||||
void EditorNode::request_instance_scenes(const Vector<String>& p_files) {
|
||||
|
||||
scene_tree_dock->instance_scenes(p_files);
|
||||
}
|
||||
|
||||
FileSystemDock *EditorNode::get_scenes_dock() {
|
||||
|
||||
return scenes_dock;
|
||||
@@ -3832,10 +3837,9 @@ SceneTreeDock *EditorNode::get_scene_tree_dock() {
|
||||
return scene_tree_dock;
|
||||
}
|
||||
|
||||
void EditorNode::_instance_request(const String& p_path){
|
||||
void EditorNode::_instance_request(const Vector<String>& p_files) {
|
||||
|
||||
|
||||
request_instance_scene(p_path);
|
||||
request_instance_scenes(p_files);
|
||||
}
|
||||
|
||||
void EditorNode::_property_keyed(const String& p_keyed,const Variant& p_value,bool p_advance) {
|
||||
|
||||
Reference in New Issue
Block a user