diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-02-12 16:46:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-02-12 16:48:50 +0300 |
commit | 719fd5a1ce4683a8ceb402d1138bb7d3b55afea2 (patch) | |
tree | 57df08ace04c4615a8b81e463572701df608eb55 /source/blender/editors/transform/transform_conversions.c | |
parent | d92d8c3768207b99d714cd7d45f9460bc1a67b89 (diff) |
GPencil: Alt-S can now be used to adjust the pressure values (i.e. thickness) of strokes
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 4802f8dc127..b50f56aae3e 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -7502,6 +7502,12 @@ static void createTransGPencil(bContext *C, TransInfo *t) if (pt->flag & GP_SPOINT_SELECT) td->flag |= TD_SELECTED; + + /* for other transform modes (e.g. shrink-fatten), need to additional data */ + if (t->mode == TFM_GPENCIL_SHRINKFATTEN) { + td->val = &pt->pressure; + td->ival = pt->pressure; + } /* configure 2D points so that they don't play up... */ if (gps->flag & (GP_STROKE_2DSPACE | GP_STROKE_2DIMAGE)) { |