godot icon indicating copy to clipboard operation
godot copied to clipboard

Add shortcuts to reset position, rotation and scale in Spatial and Canvas Item Editor

Open Shaderd00d opened this issue 10 months ago • 4 comments

These changes allow resetting Node3D and Node2D transforms in the Spatial and Canvas Item Editor according to proposal #11523.

The keybindings default to ALT+W (position), ALT+E (rotation) and ALT+R (scale) and thus align with the default bindings to activate Move Mode (W), Rotate Mode (E) and Scale Mode (R).

Either a single selected node or multiple selected nodes can be reset and the reset can be undone.

The keybindings can be changed under Editor Settings -> Shortcuts. shortcuts

  • Production edit: This closes https://github.com/godotengine/godot-proposals/issues/10612.

Shaderd00d avatar Feb 15 '25 09:02 Shaderd00d

Closes https://github.com/godotengine/godot-proposals/issues/10612

Godot seems to have a little bit of identity crisis where it can't decide if it wants to be blender (G/R/S) (see https://github.com/godotengine/godot/pull/78148) or industry-compatible (the current W/E/R), I guess when that's resolved these shortcuts should conform to whatever is considered to be the primary way. For now it's still W/E/R so no changes are needed to this PR

passivestar avatar Mar 04 '25 10:03 passivestar

Thanks @Calinou, I've updated the code.

  • The shortcuts will now be ignored in 3D freelook mode.
  • position, rotation and scale can now be reset for Controls, too.

Shaderd00d avatar Mar 07 '25 19:03 Shaderd00d

Could you squash the commits? See PR workflow for instructions.

akien-mga avatar Mar 07 '25 23:03 akien-mga

Could you squash the commits? See PR workflow for instructions.

Done. Thanks for the hint.

Shaderd00d avatar Mar 08 '25 18:03 Shaderd00d

Could you rebase your PR? It'll use the same pull request guidelines mentioned earlier, though it's now hosted on a new site

Repiteo avatar Oct 01 '25 17:10 Repiteo

@Repiteo I'll take care of it, but it may take a few days. @AThousandShips thanks for the improvements.

Shaderd00d avatar Oct 02 '25 04:10 Shaderd00d

@Repiteo I believe this PR is now ready to be merged.

Shaderd00d avatar Oct 03 '25 13:10 Shaderd00d

Thanks! Congratulations on your first merged contribution! 🎉

Repiteo avatar Oct 14 '25 15:10 Repiteo