godotengine / godotengine/godot
Using the delete shortcut will always activate snapping before transforming a 3D node in the editor
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- Occurs in 4.5
- Did not occur in 4.4.1
### System information
Godot v4.5.stable - macOS Sequoia (15.6.1) - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M1 Pro (Apple7) - Apple M1 Pro (10 threads) - 16.00 GiB memory
### Issue description
When moving or rotating a 3D node after deleting another node using CMD + delete shortcut, it is observed that the snapping is somehow active (Use Snap is off and no key is being pressed).
The behavior is changed in 4.5. If Use Snap is disabled, you could use snapping while moving or rotating a node by pressing the Control key in 4.4 while in 4.5, it is the Command key.
It might be an issue I could resolve myself; however, I cannot find or change this shortcut key in the Editor Settings.
### Steps to reproduce
1. Open or create a 3D scene in 4.5.
2. Add a MeshInstance3D with a cube mesh. (For visualization)
3. Duplicate the MeshInstance3D.
4. Turn off Use Snap (Y). (MRP starts here)
5. Delete one of the MeshInstance3Ds using the shortcut (CMD + delete).
6. Move or rotate the remaining MeshInstance3D.
7. Observe snapping is on while no key is being pressed.
### Minimal reproduction project (MRP)
[delete-shortcut-bug.zip](https://github.com/user-attachments/files/22528519/delete-shortcut-bug.zip)
Contributor guide
Research direction
Use the attached delete-shortcut-bug.zip and follow the six reproduction steps in the issue in Godot 4.5 on macOS. Compare the delete shortcut and snapping behavior with Godot 4.4.1; done means deleting with CMD + Delete no longer leaves snapping active when Use Snap is off and no modifier key is pressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100