Blender Git Loki

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.


Differential Revision:

Commit Details:

Full Hash: 6a2bc40e0131aa2689aa37a915f672f28fed8aa8
Parent Commit: 4225a18
Committed By: Antonio Vazquez
Lines Changed: +111, -2

Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021