diff options
author | Antonioya <blendergit@gmail.com> | 2019-02-25 19:41:02 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-02-25 19:46:15 +0300 |
commit | 5d8a8a684253da03bf20182be443c2bd03798a49 (patch) | |
tree | a823841a83718076f74c50191c4ac5e0ed1260cc /source/blender/draw/engines/gpencil/gpencil_engine.h | |
parent | cfc2fa33bfcd1517731a266b9169b3d6a5b80ced (diff) |
GP: Add support for Wireframe mode
When enable Wireframe mode in the shading type, all strokes are displayed as simple 1 pixel lines.
The color of the line is equal to the stroke color or the fill color if the fill is enabled and the stroke is disabled or has invisible alpha value.
In wireframe mode, all FX are disabled because sometimes the effects can make the lines invisible.
The modifiers are not disabled.
Still pending to decide if we must add support for Random colors, but not sure if this is useful in 2D.
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_engine.h')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.h b/source/blender/draw/engines/gpencil/gpencil_engine.h index e1caef689ca..0e0dc3c5220 100644 --- a/source/blender/draw/engines/gpencil/gpencil_engine.h +++ b/source/blender/draw/engines/gpencil/gpencil_engine.h @@ -158,6 +158,9 @@ typedef struct GPENCIL_Storage { float grid_matrix[4][4]; + /* shading type */ + char shading_type; + Object *camera; /* camera pointer for render mode */ } GPENCIL_Storage; |