Merge pull request #114813 from KoBeWi/harry_POTter

Generate translation template from Command Palette
This commit is contained in:
Thaddeus Crews 2026-02-25 09:27:34 -06:00
commit 1e4277e34b
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
5 changed files with 23 additions and 10 deletions

View file

@ -56,7 +56,7 @@ void EditorScriptPlugin::command_palette_about_to_popup() {
commands.clear();
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);
EditorInterface::get_singleton()->get_command_palette()->add_command(String(command).capitalize(), "editor_scripts/" + command, callable_mp(this, &EditorScriptPlugin::run_command).bind(command));
}
}