diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-03-13 14:24:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-03-13 14:24:49 +0300 |
commit | cf9b3310c032c4da46fde8e8b3a8ee5941472dfc (patch) | |
tree | 9b2160988506315f7b767d416fc7d90e8e442df6 /source/blender/makesdna | |
parent | 91ca3c3c0b52a56865d3d704e4e9c6936e298610 (diff) |
GPencil: Fix Noise modifier versioning
The versioning was setting the factor for all modes without checking flags.
Also cleanup some unused code.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index 4f1dd08cd30..bc7873adb70 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -105,15 +105,15 @@ typedef struct NoiseGpencilModifierData { typedef enum eNoiseGpencil_Flag { GP_NOISE_USE_RANDOM = (1 << 0), - GP_NOISE_MOD_LOCATION = (1 << 1), - GP_NOISE_MOD_STRENGTH = (1 << 2), - GP_NOISE_MOD_THICKNESS = (1 << 3), + GP_NOISE_MOD_LOCATION = (1 << 1), /* Deprecated (only for versioning). */ + GP_NOISE_MOD_STRENGTH = (1 << 2), /* Deprecated (only for versioning). */ + GP_NOISE_MOD_THICKNESS = (1 << 3), /* Deprecated (only for versioning). */ GP_NOISE_FULL_STROKE = (1 << 4), GP_NOISE_CUSTOM_CURVE = (1 << 5), GP_NOISE_INVERT_LAYER = (1 << 6), GP_NOISE_INVERT_PASS = (1 << 7), GP_NOISE_INVERT_VGROUP = (1 << 8), - GP_NOISE_MOD_UV = (1 << 9), + GP_NOISE_MOD_UV = (1 << 9), /* Deprecated (only for versioning). */ GP_NOISE_INVERT_LAYERPASS = (1 << 10), GP_NOISE_INVERT_MATERIAL = (1 << 11), } eNoiseGpencil_Flag; |