Commit: 18a8aac3c9cdbd29164fbe26c1a3a68642696547
Author: Antonio Vazquez
Date:   Wed Jun 7 10:28:20 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB18a8aac3c9cdbd29164fbe26c1a3a68642696547

Fix bug for filling while drawing

If the opacity was set to 0, the filling area must not be showed during drawing

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

M       source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c 
b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index d334088016d..a85632fec12 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -530,7 +530,7 @@ static void gpencil_draw_buffer_strokes(GpencilBatchCache 
*cache, void *vedata,
                                cache->batch_buffer_stroke = 
DRW_gpencil_get_buffer_stroke_geom(gpd, stl->storage->unit_matrix, lthick);
                                
DRW_shgroup_call_add(stl->g_data->shgrps_drawing_stroke, 
cache->batch_buffer_stroke, stl->storage->unit_matrix);
 
-                               if ((gpd->sbuffer_size >= 3) && ((gpd->sfill[3] 
> GPENCIL_ALPHA_OPACITY_THRESH) || (gpd->bfill_style > 0))) {
+                               if ((gpd->sbuffer_size >= 3) && (gpd->sfill[3] 
> GPENCIL_ALPHA_OPACITY_THRESH)) {
                                        /* if not solid, fill is simulated with 
solid color */
                                        if (gpd->bfill_style > 0) {
                                                gpd->sfill[3] = 0.5f;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to