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/include/ED_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/include/ED_transform.h')
-rw-r--r--source/blender/editors/include/ED_transform.h12
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 */