Add comment for editor particles Restart Emission shortcut not using Cmd on macOS

This is done to avoid a conflict, but it's not obvious when looking
at the code.
This commit is contained in:
Hugo Locurcio 2024-06-25 01:40:52 +02:00
parent 25ff1306d6
commit 555f0aa2f7
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -6446,6 +6446,7 @@ EditorNode::EditorNode() {
ED_SHORTCUT("editor/ungroup_selected_nodes", TTR("Ungroup Selected Node(s)"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::G);
// Used in the GPUParticles/CPUParticles 2D/3D editor plugins.
// The shortcut is Ctrl + R even on macOS, as Cmd + R is used to run the current scene on macOS.
ED_SHORTCUT("particles/restart_emission", TTR("Restart Emission"), KeyModifierMask::CTRL | Key::R);
FileAccess::set_backup_save(EDITOR_GET("filesystem/on_save/safe_save_on_backup_then_rename"));