You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user