Blender Git Commit Log

Git Commits -> Revision 6b90093

May 1, 2021, 08:12 (GMT)
Gpencil Offset Modifier - Add randomize offset options

This patch adds the Randomize options that exist in the Array modifier to the offset modifier.

Currently the patch uses
BLI_findindex(&gpf->strokes, gps);
to get the index of the current stroke for making each stroke a different seed value. This is how the noise modifier also gets the stroke seed value and it is noted there as well that this method is slow, and should be fixed in the future with another method of getting the stroke index.
Other methods were explored such as using the total number of points of the stroke, but that makes the randomize options incompatible with other modifiers before it such as Multiple Strokes, Array, Build, and Simplify.


Differential Revision:

Commit Details:

Full Hash: 6b9009315e091337f58f463d5fb40a67d6c9a556
Parent Commit: 09e1e5d
Committed By: YimingWu
Lines Changed: +111, -2

4 Modified Paths:

/source/blender/blenkernel/intern/gpencil_geom.c (+3, -1) (Diff)
/source/blender/gpencil_modifiers/intern/MOD_gpenciloffset.c (+71, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_modifier_types.h (+9, -0) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+28, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021