diff options
author | YimingWu <xp8110@outlook.com> | 2021-06-29 15:47:55 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-06-29 15:47:55 +0300 |
commit | d1e0059eac99654624edee2a2390a3e2fdc4c7cb (patch) | |
tree | 3983e4f1b78fa3bd85e5cb16a0a010e4e3351815 /source/blender/makesdna/DNA_gpencil_modifier_types.h | |
parent | 5d5cf5308129f1632cd6e303df52dadf63026675 (diff) |
LineArt: Filtering intersection lines using mask numbers
Mask value works just like transparency mask.
You are able to select intersection lines inside a
collection or, between collections.
Reviewed By: Sebastian Parborg (zeddb)
Differential Revision: https://developer.blender.org/D11309
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index 0bd7e500044..40e4c65c4b8 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -883,11 +883,14 @@ typedef enum eLineArtGPencilModifierFlags { LRT_GPENCIL_USE_CACHE = (1 << 4), } eLineArtGPencilModifierFlags; -typedef enum eLineartGpencilMaterialMaskFlags { +typedef enum eLineartGpencilMaskSwitches { LRT_GPENCIL_MATERIAL_MASK_ENABLE = (1 << 0), /** When set, material mask bit comparisons are done with bit wise "AND" instead of "OR". */ LRT_GPENCIL_MATERIAL_MASK_MATCH = (1 << 1), -} eLineartGpencilMaterialMaskFlags; + LRT_GPENCIL_INTERSECTION_MATCH = (1 << 2), +} eLineartGpencilMaskSwitches; + +struct LineartCache; struct LineartCache; @@ -918,8 +921,11 @@ typedef struct LineartGpencilModifierData { float opacity; short thickness; - unsigned char material_mask_flags; /* eLineartGpencilMaterialMaskFlags */ + unsigned char mask_switches; /* eLineartGpencilMaskSwitches */ unsigned char material_mask_bits; + unsigned char intersection_mask; + + char _pad[7]; /** `0..1` range for cosine angle */ float crease_threshold; |