diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-13 16:24:35 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-13 16:24:35 +0400 |
commit | fb6d696f6ad029f6a79dc5cab597e55158c14bb8 (patch) | |
tree | 68943d185bf18d62021ea94cd4d0a26742957895 /source/blender/makesrna/intern/rna_mask.c | |
parent | f03a165a35125052e21eda7c26d716b2c32518a2 (diff) |
Added RNA access to mask spline's points.
Straightforward patch, point tructure was already defined,
was just matter of defining RNA collection property for
mask spline.
Available via: mask.layers[0].splines[0].points
Diffstat (limited to 'source/blender/makesrna/intern/rna_mask.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mask.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mask.c b/source/blender/makesrna/intern/rna_mask.c index 21ced71348f..37c951ef1cd 100644 --- a/source/blender/makesrna/intern/rna_mask.c +++ b/source/blender/makesrna/intern/rna_mask.c @@ -594,6 +594,11 @@ static void rna_def_maskSpline(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "flag", MASK_SPLINE_NOINTERSECT); RNA_def_property_ui_text(prop, "Self Intersection Check", "Prevent feather from self-intersections"); RNA_def_property_update(prop, NC_MASK | NA_EDITED, "rna_Mask_update_data"); + + prop = RNA_def_property(srna, "points", PROP_COLLECTION, PROP_NONE); + RNA_def_property_struct_type(prop, "MaskSplinePoint"); + RNA_def_property_collection_sdna(prop, NULL, "points", "tot_point"); + RNA_def_property_ui_text(prop, "Points", "Collection of points"); } static void rna_def_mask_layer(BlenderRNA *brna) |