GPencil: Fix Noise modifier versioning

The versioning was setting the factor for all modes without checking flags.

Also cleanup some unused code.
This commit is contained in:
2020-03-13 12:24:49 +01:00
parent 91ca3c3c0b
commit cf9b3310c0
4 changed files with 10 additions and 15 deletions

View File

@@ -55,7 +55,6 @@ static void initData(GpencilModifierData *md)
{
NoiseGpencilModifierData *gpmd = (NoiseGpencilModifierData *)md;
gpmd->pass_index = 0;
gpmd->flag |= GP_NOISE_MOD_LOCATION;
gpmd->flag |= GP_NOISE_FULL_STROKE;
gpmd->flag |= GP_NOISE_USE_RANDOM;
gpmd->factor = 0.5f;