diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-05 23:32:20 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-05 23:32:20 +0300 |
commit | 17bb2800ea7f9ca4d51986059596cb1c16e814d8 (patch) | |
tree | 0b107cde01459f83b61dcb638cfd10efd9f70003 /source/blender/makesrna | |
parent | d5e3c5482f967cf5f70487e45a4872553e5b3cd3 (diff) |
Description attributes for macros too
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c index ccda4e504b4..2cfd284ea89 100644 --- a/source/blender/makesrna/intern/rna_wm.c +++ b/source/blender/makesrna/intern/rna_wm.c @@ -936,6 +936,11 @@ static void rna_def_macro_operator(BlenderRNA *brna) RNA_def_property_string_maxlength(prop, 1024); /* else it uses the pointer size! */ RNA_def_property_flag(prop, PROP_REGISTER); + prop= RNA_def_property(srna, "bl_description", PROP_STRING, PROP_NONE); + RNA_def_property_string_sdna(prop, NULL, "type->description"); + RNA_def_property_string_maxlength(prop, 1024); /* else it uses the pointer size! */ + RNA_def_property_flag(prop, PROP_REGISTER); + prop= RNA_def_property(srna, "bl_register", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "type->flag", OPTYPE_REGISTER); RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); |