diff options
| author | Rémi Verschelde | 2015-11-22 16:55:07 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2015-11-22 17:36:03 +0100 |
| commit | f99b630993166725e91ccf2868cc4cefe2008286 (patch) | |
| tree | 328dfc8489fe8c3e3a5d77cd04b2c62196b28cd8 /tools/editor | |
| parent | bcf4aded9a2af5f9ab48f7f279ee2032d0833f16 (diff) | |
| download | godot-f99b630993166725e91ccf2868cc4cefe2008286.tar.gz godot-f99b630993166725e91ccf2868cc4cefe2008286.tar.zst godot-f99b630993166725e91ccf2868cc4cefe2008286.zip | |
Load main scene if defined when running editor from the command line
If no main scene is defined, or if it's an empty string, the previous behaviour will still be used, i.e. launch the project manager.
A small fix was also added not to maximize the window when opening the project manager via -editor (i.e. "godot" and "godot -e" will behave the same when no project is in the path).
Fixes #2869.
Diffstat (limited to 'tools/editor')
| -rw-r--r-- | tools/editor/project_manager.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index 893df0470..04705017d 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -624,11 +624,6 @@ void ProjectManager::_open_project_confirm() { args.push_back("-editor"); - const String &selected_main = E->get(); - if (selected_main!="") { - args.push_back(selected_main); - } - String exec = OS::get_singleton()->get_executable_path(); OS::ProcessID pid=0; |
