diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-08-23 21:20:25 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-08-23 21:20:37 +0300 |
commit | 777ca2dcdb32669d70a4e4e4c7b93f1c97794eab (patch) | |
tree | 4b3c42eebabf3e33213b03046c027255a77f605c /source/blender/editors/include/ED_transform.h | |
parent | 9574ac1c8d9c5c9d370b7d95eec7c657105e0658 (diff) |
Snapping System: Improve drawing indicating `Perpendicular` snap
Since pependicular snap depends on `snapTarget` it is important to indicate where this target is so as not to confuse users.
So draw a pivot where the target is and a dotted line toward the perpendicular snap point.
Reviewers: campbellbarton, brecht, billreynish
Differential Revision: https://developer.blender.org/D5557
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 3605a245187..675c0227b22 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -197,12 +197,12 @@ bool peelObjectsSnapContext(struct SnapObjectContext *sctx, float r_no[3], float *r_thickness); -bool snapObjectsTransform(struct TransInfo *t, - const float mval[2], - float *dist_px, - /* return args */ - float r_loc[3], - float r_no[3]); +short snapObjectsTransform(struct TransInfo *t, + const float mval[2], + float *dist_px, + /* return args */ + float r_loc[3], + float r_no[3]); bool snapNodesTransform(struct TransInfo *t, const int mval[2], /* return args */ |