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/makesrna/intern/rna_gpencil_modifier.c | |
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/makesrna/intern/rna_gpencil_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil_modifier.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index a619d179a33..45f98a2a88b 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -2070,6 +2070,11 @@ static void rna_def_modifier_gpencilbuild(BlenderRNA *brna) ICON_PARTICLE_TIP, "Concurrent", "Multiple strokes appear/disappear at once"}, + {GP_BUILD_MODE_ADDITIVE, + "ADDITIVE", + ICON_PARTICLE_PATH, + "Additive", + "Builds only new strokes (assuming 'additive' drawing)."}, {0, NULL, 0, NULL, NULL}, }; |