diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-07 05:38:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-07 05:38:03 +0400 |
commit | 63d523336f3876f6dca5affd66a190df88a87747 (patch) | |
tree | b4fb4677fe1138ae0476526d442a52b0804fa30b /source/blender/makesrna/intern | |
parent | 6774e727a28186258b6bfa443da0ef7aec280be3 (diff) |
freestyle lineset `tag` attribute was defined but not used, also some code cleanup.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index a2f9b554d3f..b9fb269638a 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -1949,6 +1949,10 @@ void RNA_def_main_linestyles(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_struct_sdna(srna, "Main"); RNA_def_struct_ui_text(srna, "Main Line Styles", "Collection of line styles"); + func = RNA_def_function(srna, "tag", "rna_Main_linestyle_tag"); + parm = RNA_def_boolean(func, "value", 0, "Value", ""); + RNA_def_property_flag(parm, PROP_REQUIRED); + func = RNA_def_function(srna, "new", "rna_Main_linestyles_new"); RNA_def_function_ui_description(func, "Add a new line style instance to the main database"); parm = RNA_def_string(func, "name", "FreestyleLineStyle", 0, "", "New name for the datablock"); |