[Bf-blender-cvs] [4620bd4f799] master: GPencil: Cleanup some comments
Antonio Vazquez
noreply at git.blender.org
Fri May 31 16:55:13 CEST 2019
Commit: 4620bd4f799cbade2e8cd6027c37fb942d04c64a
Author: Antonio Vazquez
Date: Fri May 31 15:59:37 2019 +0200
Branches: master
https://developer.blender.org/rB4620bd4f799cbade2e8cd6027c37fb942d04c64a
GPencil: Cleanup some comments
===================================================================
M source/blender/draw/engines/gpencil/gpencil_engine.c
M source/blender/draw/engines/gpencil/gpencil_engine.h
===================================================================
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 07588467ae2..62b893867f3 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -961,7 +961,7 @@ void GPENCIL_draw_scene(void *ved)
gpencil_draw_pass_range(
fbl, stl, psl, txl, fbl->temp_fb_a, ob, gpd, init_shgrp, end_shgrp, is_last);
- /* draw current group in separated texture */
+ /* Draw current group in separated texture to blend later */
init_shgrp = array_elm->init_shgrp;
end_shgrp = array_elm->end_shgrp;
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h
index aa26d787487..a7e4c9d58d6 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.h
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.h
@@ -67,8 +67,11 @@ struct tGPspoint;
/* *********** OBJECTS CACHE *********** */
typedef struct tGPencilObjectCache_shgrp {
+ /** type of blend (regular, add, mult, etc...) */
int mode;
+ /** flag to enable the layer clamping */
bool clamp_layer;
+ /** factor to define the opacity of the layer */
float blend_opacity;
DRWShadingGroup *init_shgrp;
DRWShadingGroup *end_shgrp;
More information about the Bf-blender-cvs
mailing list