1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #107671 from dsnopek/editor-run-control

Allow editor plugins to modify run arguments
This commit is contained in:
Thaddeus Crews
2025-10-20 18:09:32 -05:00
6 changed files with 37 additions and 1 deletions

View File

@@ -7142,6 +7142,13 @@ bool EditorNode::call_build() {
return builds_successful;
}
void EditorNode::call_run_scene(const String &p_scene, Vector<String> &r_args) {
for (int i = 0; i < editor_data.get_editor_plugin_count(); i++) {
EditorPlugin *plugin = editor_data.get_editor_plugin(i);
plugin->run_scene(p_scene, r_args);
}
}
void EditorNode::_inherit_imported(const String &p_action) {
open_imported->hide();
load_scene(open_import_request, true, true);