diff options
author | Antonioya <blendergit@gmail.com> | 2019-08-01 18:54:51 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-08-01 19:07:57 +0300 |
commit | 80123efc5fc258ef8b27efba67d6ad2a0efb7edd (patch) | |
tree | 917b2efd1309706af001d8037aa19773da54de53 /release/scripts | |
parent | 49b2162309da6abf66764d41d9fc4c45ad01936c (diff) |
Fix T67939: GPencil Noise modifier wrong random calculation
There were several problems in the old random calculation:
* Different result in the viewport and render.
* Noise "pop" in some frames.
* Random number was calculated every time the file was opened, so get different results.
Now, instead to calculate the random numbers when n number of frames changed, the random values are calculated using a unique seed by stroke.
Also, a new Seed parameter has been added and this adds more control in the noise generated. This value can be animated and get more variations.
Differential Revision: http://developer.blender.org/D5393
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 0a4c166d0f7..66e96199b08 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -1685,6 +1685,9 @@ class DATA_PT_gpencil_modifiers(ModifierButtonsPanel, Panel): row = col.row() row.enabled = md.random row.prop(md, "step") + row = col.row() + row.enabled = md.random + row.prop(md, "seed") col.prop(md, "full_stroke") col.prop(md, "move_extreme") |