From 7a4bdc3a4feb872365726ba7e0a4c6e83ec7f9e9 Mon Sep 17 00:00:00 2001 From: Cody Winchester Date: Thu, 14 Jan 2021 22:25:17 +0100 Subject: Gpencil Noise - Add noise offset parameter This patch adds a noise offset option to the grease pencil noise modifier. It allows the user to animate the noise along the length of the stroke to create movement that is currently not possible. It works by adding an offset to the noise table and adding the remaining floating point value to the noise table sampling. Reviewed By: #grease_pencil Differential Revision: https://developer.blender.org/D10021 --- source/blender/makesdna/DNA_gpencil_modifier_defaults.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_gpencil_modifier_defaults.h') diff --git a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h index fdb77bfd196..399bf6f0a6d 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_defaults.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_defaults.h @@ -152,6 +152,7 @@ .factor_thickness = 0.0f, \ .factor_uvs = 0.0f, \ .noise_scale = 0.0f, \ + .noise_offset = 0.0f, \ .step = 4, \ .layer_pass = 0, \ .seed = 1, \ -- cgit v1.2.3