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:
authorDamien Picard <pioverfour>2019-04-02 20:11:03 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-04-02 20:15:42 +0300
commitcf7dc769afb5c4e53a75716f0d54b541703e6877 (patch)
tree8579dcc2b1d82ce6e0939d91e36740fb896d5383
parent1d365374e81a6ba402858e48acd9adadf54b7b92 (diff)
Python API: expose text object kerning.
Differential Revision: https://developer.blender.org/D4621
-rw-r--r--source/blender/makesrna/intern/rna_curve.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c
index ae3b8304d7b..050ae632a4b 100644
--- a/source/blender/makesrna/intern/rna_curve.c
+++ b/source/blender/makesrna/intern/rna_curve.c
@@ -1221,6 +1221,11 @@ static void rna_def_charinfo(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Material Index", "");
RNA_def_property_int_funcs(prop, "rna_ChariInfo_material_index_get", "rna_ChariInfo_material_index_set", "rna_Curve_material_index_range");
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+
+ prop = RNA_def_property(srna, "kerning", PROP_INT, PROP_UNSIGNED);
+ RNA_def_property_int_sdna(prop, NULL, "kern");
+ RNA_def_property_ui_text(prop, "Kerning", "Spacing between characters");
+ RNA_def_property_update(prop, 0, "rna_Curve_update_data");
}
static void rna_def_surface(BlenderRNA *brna)