diff options
author | Germano Cavalcantemano-wii <germano.costa@ig.com.br> | 2021-01-11 02:24:46 +0300 |
---|---|---|
committer | Germano Cavalcantemano-wii <germano.costa@ig.com.br> | 2021-01-11 02:24:46 +0300 |
commit | 08e44b5e3ebbdc79ca849ce14f4d75a88f72a8b7 (patch) | |
tree | 0e51294e37f556fa54c69b362ad2f50409ff4e36 /source/blender/editors/transform/transform_snap.h | |
parent | 9db3d1951da15254efbbcf028176facb78118ec1 (diff) |
Fix Increment Snapping Without Constraints in Non-Axis-Aligned Views
The incremental snap was always operating in the local space, which in most
cases is the VIEW type orientation.
Use only local space when the operation is affected by constraint.
Differential Revision: https://developer.blender.org/D10052
Diffstat (limited to 'source/blender/editors/transform/transform_snap.h')
-rw-r--r-- | source/blender/editors/transform/transform_snap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_snap.h b/source/blender/editors/transform/transform_snap.h index db8ec943bfd..c557368ed17 100644 --- a/source/blender/editors/transform/transform_snap.h +++ b/source/blender/editors/transform/transform_snap.h @@ -54,6 +54,7 @@ void snapFrameTransform(struct TransInfo *t, bool transformModeUseSnap(const TransInfo *t); +bool transform_snap_increment_ex(TransInfo *t, bool use_local_space, float *r_val); bool transform_snap_increment(TransInfo *t, float *val); bool transform_snap_grid(TransInfo *t, float *val); |