You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user