Page MenuHome

Sculpt: Add angle snapping to line gesture tools
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Oct 5 2020, 9:06 PM.
Tags
None
Tokens
"Like" token, awarded by MetinSeven."100" token, awarded by Torrent."Love" token, awarded by g.ndre."100" token, awarded by Frozen_Death_Knight."Burninate" token, awarded by NAS."Love" token, awarded by Brandon777."Love" token, awarded by lopoIsaac."Like" token, awarded by TheRedWaxPolice."Love" token, awarded by ThinkingPolygons.

Details

Summary

This adds support for snapping for line gesture tool. It is implemented
in the modal keymap as Snap, which is a toggle (similar to how snapping
in the transform operator works).

Right now it snaps the angle of the line to 45 degree increments, which
is defined in code. This should be easy to expose in the UI in the future
if we need to

Diff Detail

Repository
rB Blender

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Oct 5 2020, 9:06 PM
Pablo Dobarro (pablodp606) created this revision.

it snaps the angle of the line to 45 degree increments, which
is defined in code. This should be easy to expose in the UI in the future
if we need to

Yes please. Or at least make it 5 degree by default in sculpt mode. 45 is not very pratical.

Holding shift should limit the rotation to 5 degree difference

See https://docs.blender.org/manual/en/dev/scene_layout/object/editing/transform/control/precision.html#rotation

For ultra precision the user can also type in an exact angle to cut at

Holding shift should limit the rotation to 5 degree difference

This is how this patch is working right now?

See https://docs.blender.org/manual/en/dev/scene_layout/object/editing/transform/control/precision.html#rotation

That link says ctrl for 5 degrees 🤔

and shift for very fine control 🤔

LGTM, but indeed, 45° doesn't seem too practical. 10° and 1° for seems more appropriate.
Don't think we should add an option for this, I don't think we have a similar one and we can just have good defaults.

This revision is now accepted and ready to land.Oct 15 2020, 10:35 PM

Don't think we should add an option for this, I don't think we have a similar one and we can just have good defaults.

Why not? I mean, among the most used 3d apps, blender is the only one that don't expose that setting, why is that? This is a crucial setting of any type of transform tools. Blender really needs it.
Maybe not now, but you guys really should consider adding it soon.

@Julian Eisel (Severin) 10 will prevent snapping to 45, which I think is also quite common. Maybe 5 as a default?

i think 15 and 5 are the most used intervals.. if this helps