diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-15 07:11:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-15 07:11:07 +0400 |
commit | 02bac0bebfcf7f56d5ff7f04a122ec8144424e3d (patch) | |
tree | c44da5b2b51db5033cc57ec8d62ca8d2aaf84fb3 /source/blender/makesrna/intern/rna_mask.c | |
parent | 7cc5af4ef3869f6a1d2766eb5643f94e2f540cfa (diff) |
falloff option for mask layers
Diffstat (limited to 'source/blender/makesrna/intern/rna_mask.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mask.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mask.c b/source/blender/makesrna/intern/rna_mask.c index e6fd47985cb..2b89dd02dae 100644 --- a/source/blender/makesrna/intern/rna_mask.c +++ b/source/blender/makesrna/intern/rna_mask.c @@ -35,6 +35,7 @@ #include "BKE_tracking.h" #include "RNA_define.h" +#include "RNA_enum_types.h" #include "rna_internal.h" @@ -653,6 +654,12 @@ static void rna_def_mask_layer(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Restrict View", "Invert the mask black/white"); RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); + prop = RNA_def_property(srna, "falloff", PROP_ENUM, PROP_NONE); + RNA_def_property_enum_sdna(prop, NULL, "falloff"); + RNA_def_property_enum_items(prop, proportional_falloff_curve_only_items); + RNA_def_property_ui_text(prop, "Falloff", "Falloff type the feather"); + RNA_def_property_update(prop, NC_MASK | NA_EDITED, NULL); + } static void rna_def_masklayers(BlenderRNA *brna, PropertyRNA *cprop) |