Commit: 611337cad531894a3bcf7bcba71ccd8e06e1b50f
Author: Antonio Vazquez
Date:   Wed Feb 28 14:23:16 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB611337cad531894a3bcf7bcba71ccd8e06e1b50f

Fix refresh error when change mode to Boxes

I had forgotten to pass the parameter to shader.

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

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 eacaa50cbe9..042d8410cb6 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -467,6 +467,7 @@ static DRWShadingGroup 
*DRW_gpencil_shgroup_point_create(GPENCIL_e_data *e_data,
                        }
                }
                DRW_shgroup_uniform_int(grp, "color_type", 
&stl->shgroups[id].color_type, 1);
+               DRW_shgroup_uniform_int(grp, "mode", &stl->shgroups[id].mode, 
1);
                DRW_shgroup_uniform_float(grp, "pixfactor", &gpd->pixfactor, 1);
        }
        else {

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

Reply via email to