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
path: root/source
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-04-22 04:59:27 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-04-22 04:59:27 +0400
commit4a63eb9321b5fb2e21b4d762ffb7220174c9cb05 (patch)
tree7ef0722c8af2dd218588a6eb6d27d97f114875e2 /source
parentcdbfd1db3800cf4f0ea691f09bf05e78a82c80f9 (diff)
Added operators for adding the data paths to Freestyle edge/face mark properties of
selected edges/polygons into the active keying set. This makes it easy to keyframe a number of Freestyle edge/face marks.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index e0b8feb2e79..265405f9835 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -1596,6 +1596,11 @@ static void rna_def_mpolygon(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Smooth", "");
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
+ prop = RNA_def_property(srna, "use_freestyle_face_mark", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", ME_FREESTYLE_FACE);
+ RNA_def_property_ui_text(prop, "Freestyle Face Mark", "Face mark for Freestyle feature edge detection");
+ RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
+
prop = RNA_def_property(srna, "normal", PROP_FLOAT, PROP_DIRECTION);
RNA_def_property_array(prop, 3);
RNA_def_property_range(prop, -1.0f, 1.0f);