1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Allow editor plugins to modify run arguments

This commit is contained in:
David Snopek
2025-06-18 10:12:34 -05:00
parent d705613db3
commit fe27a72cb5
6 changed files with 37 additions and 1 deletions

View File

@@ -7103,6 +7103,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);