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/transform/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/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index a2195c97823..4e245588f53 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -85,7 +85,9 @@ typedef struct TransSnap { bool snap_self; bool peel; bool snap_spatial_grid; - short status; + char status; + /* Snapped Element Type (currently for objects only). */ + char snapElem; /** snapping from this point (in global-space). */ float snapPoint[3]; /** to this point (in global-space). */ |