[Bf-blender-cvs] [404c3adfcc7] blender-v2.83-release: GPencil: Fix unreported Shift+F OPacity key not working
Antonio Vazquez
noreply at git.blender.org
Thu Jun 11 09:35:42 CEST 2020
Commit: 404c3adfcc768546381eb1efbbe4a9cf95847bb4
Author: Antonio Vazquez
Date: Sun Jun 7 16:18:02 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB404c3adfcc768546381eb1efbbe4a9cf95847bb4
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