mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #113774 from sockeye-d/inherited-editor-scripts
Make indirectly inherited `EditorScript`s appear in the command palette
This commit is contained in:
@@ -53,7 +53,7 @@ void EditorScriptPlugin::command_palette_about_to_popup() {
|
||||
EditorInterface::get_singleton()->get_command_palette()->remove_command("editor_scripts/" + command);
|
||||
}
|
||||
commands.clear();
|
||||
ScriptServer::get_inheriters_list(SNAME("EditorScript"), &commands);
|
||||
ScriptServer::get_indirect_inheriters_list(SNAME("EditorScript"), &commands);
|
||||
for (const StringName &command : commands) {
|
||||
EditorInterface::get_singleton()->get_command_palette()->add_command(String(command).capitalize(), "editor_scripts/" + command, callable_mp(this, &EditorScriptPlugin::run_command), varray(command), nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user