[Bf-blender-cvs] [00961d062a4] master: GPencil: Fix unreported Shift+F OPacity key not working

Antonio Vazquez noreply at git.blender.org
Sun Jun 7 16:18:11 CEST 2020


Commit: 00961d062a4b0624135db79a0607d69128e79511
Author: Antonio Vazquez
Date:   Sun Jun 7 16:18:02 2020 +0200
Branches: master
https://developer.blender.org/rB00961d062a4b0624135db79a0607d69128e79511

GPencil: Fix unreported Shift+F OPacity key not working

This wa snot working since the new scale thickness was included.

===================================================================

M	source/blender/editors/transform/transform_convert_gpencil.c

===================================================================

diff --git a/source/blender/editors/transform/transform_convert_gpencil.c b/source/blender/editors/transform/transform_convert_gpencil.c
index efd7879c8b2..00b0eab90cd 100644
--- a/source/blender/editors/transform/transform_convert_gpencil.c
+++ b/source/blender/editors/transform/transform_convert_gpencil.c
@@ -317,10 +317,12 @@ void createTransGPencil(bContext *C, TransInfo *t)
                   /* for other transform modes (e.g. shrink-fatten), need to additional data
                    * but never for mirror
                    */
-                  if ((t->mode != TFM_MIRROR) && (is_scale_thickness)) {
+                  if (t->mode != TFM_MIRROR) {
                     if (t->mode != TFM_GPENCIL_OPACITY) {
-                      td->val = &pt->pressure;
-                      td->ival = pt->pressure;
+                      if (is_scale_thickness) {
+                        td->val = &pt->pressure;
+                        td->ival = pt->pressure;
+                      }
                     }
                     else {
                       td->val = &pt->strength;



More information about the Bf-blender-cvs mailing list