Blender Git Commit Log

Git Commits -> Revision 6a2bc40

Revision 6a2bc40 by Cody Winchester (master)
April 29, 2021, 13:45 (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.

{F9591325}

Differential Revision: https://developer.blender.org/D10171

Commit Details:

Full Hash: 6a2bc40e0131aa2689aa37a915f672f28fed8aa8
Parent Commit: 4225a18
Committed By: Antonio Vazquez
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