diff options
author | YimingWu <xp8110@outlook.com> | 2021-06-25 13:48:20 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-06-25 13:48:20 +0300 |
commit | 3558bb8eae758aa7e6483d0a6fc00dc83407d4cf (patch) | |
tree | 7dc46c0bee5ce2e8d81388d4c426a5e1addb3023 /source/blender/makesdna | |
parent | ae085e301c2aac0d6956609bfe93a90a19f0e235 (diff) |
LineArt: Filtering feature lines with face mask
User can specify filtering options inside line art modifier,
like inverting selection and including face mark region border.
Reviewed By: Sebastian Parborg (zeddb)
Differential Revision: https://developer.blender.org/D11307
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_lineart_types.h | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index c0768c9a077..7c0679d38a9 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -873,6 +873,7 @@ typedef enum eLineartGpencilModifierSource { LRT_SOURCE_SCENE = 2, } eLineartGpencilModifierSource; +/* This enumis for modifier internal state only. */ typedef enum eLineArtGPencilModifierFlags { /* These two moved to eLineartMainFlags to keep consistent with flag variable purpose. */ /* LRT_GPENCIL_INVERT_SOURCE_VGROUP = (1 << 0), */ @@ -932,7 +933,7 @@ typedef struct LineartGpencilModifierData { /* Ported from SceneLineArt flags. */ int calculation_flags; - /* Additional Switches. */ + /* eLineArtGPencilModifierFlags, modifier internal state. */ int flags; /* Runtime data. */ diff --git a/source/blender/makesdna/DNA_lineart_types.h b/source/blender/makesdna/DNA_lineart_types.h index bbb3bd29197..3a3af622dd5 100644 --- a/source/blender/makesdna/DNA_lineart_types.h +++ b/source/blender/makesdna/DNA_lineart_types.h @@ -39,6 +39,7 @@ * Edge flags and usage flags are used by with scene/object/gpencil modifier bits, and those values * needs to stay consistent throughout. */ +/* These flags are used for 1 time calculation, not stroke selection afterwards. */ typedef enum eLineartMainFlags { LRT_INTERSECTION_AS_CONTOUR = (1 << 0), LRT_EVERYTHING_AS_CONTOUR = (1 << 1), @@ -52,9 +53,9 @@ typedef enum eLineartMainFlags { LRT_FILTER_FACE_MARK = (1 << 9), LRT_FILTER_FACE_MARK_INVERT = (1 << 10), LRT_FILTER_FACE_MARK_BOUNDARIES = (1 << 11), - LRT_CHAIN_FLOATING_EDGES = (1 << 11), - LRT_CHAIN_GEOMETRY_SPACE = (1 << 12), - LRT_ALLOW_OVERLAP_EDGE_TYPES = (1 << 13), + LRT_CHAIN_FLOATING_EDGES = (1 << 12), + LRT_CHAIN_GEOMETRY_SPACE = (1 << 13), + LRT_ALLOW_OVERLAP_EDGE_TYPES = (1 << 14), } eLineartMainFlags; typedef enum eLineartEdgeFlag { |