diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-08-29 10:47:08 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-08-29 10:47:08 +0300 |
commit | 613b6ad9e55fe904a90ba9166c8eb2fd654a8d85 (patch) | |
tree | 301f8621568f819adb5191cfb1f5cbda63ad4d94 /source/blender/makesdna | |
parent | 377b81ac0733ff25dba54f9fce6e99f66073e761 (diff) |
GPencil: New conversion to outline in draw mode
This new option converts the stroke to outline perimeter as soon as is drawn.
If no alternative material is set, the actual material is used.
The algorithm is similar to the new operator in D15664
Reviewed By: pepeland
Differential Revision: https://developer.blender.org/D15738
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_brush_enums.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_enums.h b/source/blender/makesdna/DNA_brush_enums.h index adda23c26f2..988853e6694 100644 --- a/source/blender/makesdna/DNA_brush_enums.h +++ b/source/blender/makesdna/DNA_brush_enums.h @@ -87,6 +87,8 @@ typedef enum eGPDbrush_Flag { GP_BRUSH_OCCLUDE_ERASER = (1 << 15), /* Post process trim stroke */ GP_BRUSH_TRIM_STROKE = (1 << 16), + /* Post process convert to outline stroke */ + GP_BRUSH_OUTLINE_STROKE = (1 << 17), } eGPDbrush_Flag; typedef enum eGPDbrush_Flag2 { diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index b24bb786593..174ec614238 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -135,6 +135,8 @@ typedef struct BrushGpencilSettings { /* optional link of material to replace default in context */ /** Material. */ struct Material *material; + /** Material Alternative for secondary operations. */ + struct Material *material_alt; } BrushGpencilSettings; typedef struct BrushCurvesSculptSettings { |