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/makesrna/intern/rna_gpencil_modifier.c | |
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/makesrna/intern/rna_gpencil_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil_modifier.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil_modifier.c b/source/blender/makesrna/intern/rna_gpencil_modifier.c index 96c4fe3740e..00188ac0887 100644 --- a/source/blender/makesrna/intern/rna_gpencil_modifier.c +++ b/source/blender/makesrna/intern/rna_gpencil_modifier.c @@ -478,12 +478,6 @@ static void rna_def_modifier_gpencilnoise(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Seed", "Random seed"); RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); - prop = RNA_def_property(srna, "use_edit_position", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_NOISE_MOD_LOCATION); - RNA_def_property_ui_text( - prop, "Affect Position", "The modifier affects the position of the point"); - RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); - prop = RNA_def_property(srna, "noise_scale", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "noise_scale"); RNA_def_property_range(prop, 0.0, 1.0); |