[Bf-blender-cvs] [d8cbcf4e64a] soc-2020-greasepencil-curve: GPencil: Add curve point collection RNA to gp stroke
Falk David
noreply at git.blender.org
Wed Jun 3 17:22:57 CEST 2020
Commit: d8cbcf4e64ab201d34e51da4826acb9117a97a90
Author: Falk David
Date: Wed Jun 3 17:21:22 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rBd8cbcf4e64ab201d34e51da4826acb9117a97a90
GPencil: Add curve point collection RNA to gp stroke
===================================================================
M source/blender/makesrna/intern/rna_gpencil.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 073e559ecd5..3685fed9b03 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -1081,6 +1081,11 @@ static void rna_def_gpencil_curve(BlenderRNA *brna)
RNA_def_struct_sdna(srna, "bGPDcurve");
RNA_def_struct_ui_text(srna, "Edit Curve", "Edition Curve");
+ prop = RNA_def_property(srna, "curve_points", PROP_COLLECTION, PROP_NONE);
+ RNA_def_property_collection_sdna(prop, NULL, "curve_points", "tot_curve_points");
+ RNA_def_property_struct_type(prop, "BezierSplinePoint");
+ RNA_def_property_ui_text(prop, "Curve Points", "Curve data points");
+
/* Curve. TODO: make BezTriple collection */
// prop = RNA_def_property(srna, "curve", PROP_POINTER, PROP_NONE);
// RNA_def_property_pointer_sdna(prop, NULL, "curve");
More information about the Bf-blender-cvs
mailing list