Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-08-23 21:20:25 +0300
committermano-wii <germano.costa@ig.com.br>2019-08-23 21:20:37 +0300
commit777ca2dcdb32669d70a4e4e4c7b93f1c97794eab (patch)
tree4b3c42eebabf3e33213b03046c027255a77f605c /source/blender/editors/transform/transform.h
parent9574ac1c8d9c5c9d370b7d95eec7c657105e0658 (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.h4
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). */