GPencil: Fix unreported Shift+F OPacity key not working

This wa snot working since the new scale thickness was included.
This commit is contained in:
Antonio Vazquez 2020-06-07 16:18:02 +02:00
parent dc6cee4724
commit 00961d062a
Notes: blender-bot 2023-02-14 06:00:49 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 5 additions and 3 deletions

View File

@ -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;