Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-05-13 16:24:35 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-05-13 16:24:35 +0400
commitfb6d696f6ad029f6a79dc5cab597e55158c14bb8 (patch)
tree68943d185bf18d62021ea94cd4d0a26742957895
parentf03a165a35125052e21eda7c26d716b2c32518a2 (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
-rw-r--r--source/blender/makesrna/intern/rna_mask.c5
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)