Blender Git Loki

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.

{F9591325}

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

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021