[Bf-blender-cvs] [d24c0011cfd] master: GPencil: Make Ignore Transparent option more consistent
Antonio Vazquez
noreply at git.blender.org
Sun Nov 20 11:22:28 CET 2022
Commit: d24c0011cfd812f9bc8d3fefb7b9ad9af48bd533
Author: Antonio Vazquez
Date: Sun Nov 20 11:22:20 2022 +0100
Branches: master
https://developer.blender.org/rBd24c0011cfd812f9bc8d3fefb7b9ad9af48bd533
GPencil: Make Ignore Transparent option more consistent
The code was doing the oposite of the UI option.
Related to T102625
===================================================================
M source/blender/editors/gpencil/gpencil_fill.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 5c88e719b8c..6fd23a29661 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -968,7 +968,8 @@ static void gpencil_draw_basic_stroke(tGPDfill *tgpf,
for (int i = 0; i < totpoints; i++, pt++) {
- if (flag & GP_BRUSH_FILL_HIDE) {
+ /* This flag is inverted in the UI. */
+ if ((flag & GP_BRUSH_FILL_HIDE) == 0) {
float alpha = gp_style->stroke_rgba[3] * pt->strength;
CLAMP(alpha, 0.0f, 1.0f);
col[3] = alpha <= thershold ? 0.0f : 1.0f;
More information about the Bf-blender-cvs
mailing list