diff options
author | Marc Chéhab <marcluzmedia> | 2022-03-08 18:37:57 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-03-08 18:40:27 +0300 |
commit | e74838d0d011d5231b9809504c410b8bd75cfa8b (patch) | |
tree | f102412e90e150cb58e69851cae08a51eeec473e /source/blender/makesdna | |
parent | 5791835678067b5656469647990d769249065ee1 (diff) |
GPencil: New "Additive" mode for build modifier
The new mode only builds the new strokes in each frame.
The code is assuming somebody uses "additive" drawing, so that each frame is different only in its NEW strokes. Already existing strokes are skipped.
I used a simple solution: Count the number of strokes in the previous frame and ignore this many strokes in the current frame.
Differential Revision: https://developer.blender.org/D14252
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index e30dd4e1c8f..0539b84e093 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -401,6 +401,8 @@ typedef enum eBuildGpencil_Mode { GP_BUILD_MODE_SEQUENTIAL = 0, /* All strokes start at the same time */ GP_BUILD_MODE_CONCURRENT = 1, + /* Only the new strokes are built */ + GP_BUILD_MODE_ADDITIVE = 2, } eBuildGpencil_Mode; typedef enum eBuildGpencil_Transition { |