diff options
author | Charlie Jolly <mistajolly@gmail.com> | 2018-12-18 18:51:46 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2018-12-18 18:51:46 +0300 |
commit | 12d6c138999bd6e3637af773c44155f3e1c3b67d (patch) | |
tree | 7c4efae356d2e103d65ba238b4748eedcb1a79dc /source/blender/editors/include | |
parent | e62368e6c435dad23a0d47016fcbfc65fce8d62b (diff) |
GP: Primitive: Fix flickering when using a noise brush
Previously, the random values were generated every draw, now they are generated once.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 06869cd226b..4c453c67f6b 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -73,12 +73,14 @@ struct wmWindowManager; * Used as part of the 'stroke cache' used during drawing of new strokes */ typedef struct tGPspoint { - float x, y; /* x and y coordinates of cursor (in relative to area) */ + float x, y; /* x and y coordinates of cursor (in relative to area) */ float pressure; /* pressure of tablet at this point */ float strength; /* pressure of tablet at this point for alpha factor */ float time; /* Time relative to stroke start (used when converting to path) */ float uv_fac; /* factor of uv along the stroke */ float uv_rot; /* uv rotation for dor mode */ + float rnd[2]; /* rnd value */ + bool rnd_dirty; /* rnd flag */ } tGPspoint; /* used to sort by zdepth gpencil objects in viewport */ |