Page MenuHome

Sculpt Mode: Resolve `Shift R` shortcut conflicts
ClosedPublic

Authored by Julien Kaspar (JulienKaspar) on Nov 15 2022, 10:40 AM.

Details

Summary

Based on T99607:

  • Existing Angle Control shortcuts are removed
  • Voxel, Dyntopo and Hair resolution shortcuts are remapped to R

Since voxel remeshing is not compatible with dyntopo, each can use the shortcut R for the remeshing resolution without causing a conflict.
The shortcut R is not currently used for anything important.
The angle control menu is commonly not used.
And sculpt mode is only coincidentally inheriting the rotate operator shortcut on R because nothing else is mapped to the key.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 24652
Build 24652: arc lint + arc unit

Event Timeline

Julien Kaspar (JulienKaspar) requested review of this revision.Nov 15 2022, 10:40 AM
Julien Kaspar (JulienKaspar) created this revision.
Hans Goudey (HooglyBoogly) requested changes to this revision.Nov 17 2022, 11:38 PM
Hans Goudey (HooglyBoogly) added inline comments.
release/scripts/presets/keyconfig/keymap_data/blender_default.py
4921–4969

These two changes break the keymap completely. It looks like you forgot to remove the op_menu word too.

This revision now requires changes to proceed.Nov 17 2022, 11:38 PM

Removed leftover op_menu from lines.

Julien Kaspar (JulienKaspar) marked an inline comment as done.Nov 18 2022, 12:07 PM

Addressed note. This should fix the keymap.

This revision is now accepted and ready to land.Nov 18 2022, 2:45 PM
Aaron Carlisle (Blendify) requested changes to this revision.Dec 8 2022, 5:51 PM

Is there a similar conflict in the industry standard key map? if so it should be fixed there also.

I would recommend removing the shortcut from the industry standard keymap anyways and then remove VIEW3D_MT_angle_control

This revision now requires changes to proceed.Dec 8 2022, 5:51 PM

Removed angle control shortcuts from industry compatible keymap.

@Aaron Carlisle (Blendify) Since the Repeat Last operator in the IC keymap is using G there is no keymap conflict there. So I'll leave the remaining shortcuts as they are.

VIEW3D_MT_angle_control is now unused and can be removed.

Removed VIEW3D_MT_angle_control

This revision is now accepted and ready to land.Wed, Jan 18, 3:41 AM

R could be used for transform operations.
In 3.3, if you press R, you can rotate unmasked unhidden mesh.
When R has been pressed, pressing G can move unmasked unhidden mesh parts.
So, R -> rotate. R, G -> move. R, S -> Scale.

If G and S are not provoking transform operations, they were used by brushes. G is used by Grab Brush. S was used by smooth. R by Angle Control.
There could have been a coherence with brushes use. G to Grab, R to Rotate brush, S to Inflate.

S was remapped to sample color for painting color attributes. The choice of coherence with paint modes was done.

Currently, there are custom active tools with gizmos. There are preferences to map G,R,S to those tools in other modes.
The choice of coherence with Object and Edit mode could be done to avoid to add custom shortcuts to transform in Sculpt mode.

We have 9 brushes that have different deformation modes.
Smooth, Elastic Deform, Snake Hook, Pose, Slide Relax, Boundary, Cloth, Multires Displacement, Smear.
2 trim tools that have trim modes.
1 Edit Face Set tool that has modes.
And 4 transform tools have transform modes.
One shortcut is needed to set mode.

To me, that would make sense to keep GRS to transform, in sculpt mode, and choose Y to Grab brush, V to Voxel Remesh and U or J to sample color.
That way , GRS could be complementary to brushes with deformation modes.

@ronan ducluzeau (zeauro) Sorry but that is a far more involved change that changes default shortcuts across many modes.
That was out of the scope for this patch.