Merge pull request #114813 from KoBeWi/harry_POTter
Generate translation template from Command Palette
This commit is contained in:
commit
1e4277e34b
5 changed files with 23 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue