diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-23 08:59:10 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-23 08:59:10 +0200 |
commit | da979ecacac2ea437dd0e177a0d2cfd8c9c577ba (patch) | |
tree | 12761a2c6bc3e7ce2c8d962adcec1fcf1dad67fa /editor/plugins/gpu_particles_2d_editor_plugin.cpp | |
parent | de490253feec1cad9de2a92ed9a85a8eecaca0eb (diff) | |
parent | 57f52092c341069e99ae9da8a4041bdef4506515 (diff) | |
download | redot-engine-da979ecacac2ea437dd0e177a0d2cfd8c9c577ba.tar.gz |
Merge pull request #92134 from Calinou/editor-particles-restart-add-shortcut
Add Ctrl + R keyboard shortcut to restart particle emission in the editor
Diffstat (limited to 'editor/plugins/gpu_particles_2d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gpu_particles_2d_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/gpu_particles_2d_editor_plugin.cpp b/editor/plugins/gpu_particles_2d_editor_plugin.cpp index e9f1b07c34..328b272562 100644 --- a/editor/plugins/gpu_particles_2d_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_2d_editor_plugin.cpp @@ -33,6 +33,7 @@ #include "canvas_item_editor_plugin.h" #include "core/io/image_loader.h" #include "editor/editor_node.h" +#include "editor/editor_settings.h" #include "editor/editor_undo_redo_manager.h" #include "editor/gui/editor_file_dialog.h" #include "editor/scene_tree_dock.h" @@ -370,7 +371,7 @@ GPUParticles2DEditorPlugin::GPUParticles2DEditorPlugin() { toolbar->hide(); menu = memnew(MenuButton); - menu->get_popup()->add_item(TTR("Restart"), MENU_RESTART); + menu->get_popup()->add_shortcut(ED_GET_SHORTCUT("particles/restart_emission"), MENU_RESTART); menu->get_popup()->add_item(TTR("Generate Visibility Rect"), MENU_GENERATE_VISIBILITY_RECT); menu->get_popup()->add_item(TTR("Load Emission Mask"), MENU_LOAD_EMISSION_MASK); // menu->get_popup()->add_item(TTR("Clear Emission Mask"), MENU_CLEAR_EMISSION_MASK); |