diff options
author | Antonioya <blendergit@gmail.com> | 2019-04-13 11:47:38 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-04-13 12:19:03 +0300 |
commit | 789d242fa7bdd4cb8435ddce178ec43a36067615 (patch) | |
tree | 0622a08e56930064312c5e63df96ad1493130841 /source/blender/editors/transform/transform_conversions.c | |
parent | a43b373c429c16a66788791e66ec6e7338a85f0e (diff) |
GPencil: Implement Opacity transform
Add Shift+F to transform points opacity in Edit mode
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 9985b0c9915..a3ee7dd5635 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -8567,8 +8567,14 @@ static void createTransGPencil(bContext *C, TransInfo *t) * but never for scale or mirror */ if ((t->mode != TFM_RESIZE) && (t->mode != TFM_MIRROR)) { - td->val = &pt->pressure; - td->ival = pt->pressure; + if (t->mode != TFM_GPENCIL_OPACITY) { + td->val = &pt->pressure; + td->ival = pt->pressure; + } + else { + td->val = &pt->strength; + td->ival = pt->strength; + } } /* screenspace needs special matrices... */ |