diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-07-30 20:42:43 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-07-30 20:43:17 +0300 |
commit | 9d7a03ab1177f7227653ec691e10ce328771a4eb (patch) | |
tree | aa63a5cfda5c0f2527fefeed15325d67ea5eac0d /source/blender/makesdna/DNA_gpencil_modifier_types.h | |
parent | 28bd15cdf01f1a0ad14a320bfe91a16d3f039ba4 (diff) |
Fix T67939: GPencil Noise modifier step is ignored in render
The value of the step was calculated using a variable that was removed when the render frame change.
Now, the step is calculated using the modulus of the current frame and recalculate noise only if the remainder that results from performing integer division is equal to 0.
To calculate current frame, the first used frame is calculated to adjust real frame range.
This approach is more stable in viewport and render.
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index 8b756ff2937..c2a9d3cf296 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -92,7 +92,7 @@ typedef struct NoiseGpencilModifierData { int step; /** Last gp frame used. */ int gp_frame; - /** Last scene frame used. */ + /** First scene frame used. */ int scene_frame; /** Random values. */ float vrand1, vrand2; |