[Bf-blender-cvs] [3160740] master: Fix T40762: Python can't access macro values
Campbell Barton
noreply at git.blender.org
Tue May 12 21:27:57 CEST 2015
Commit: 3160740421cfef1cee61478baadddd256af2dfca
Author: Campbell Barton
Date: Wed May 13 05:25:26 2015 +1000
Branches: master
https://developer.blender.org/rB3160740421cfef1cee61478baadddd256af2dfca
Fix T40762: Python can't access macro values
===================================================================
M source/blender/makesrna/intern/rna_wm.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_wm.c b/source/blender/makesrna/intern/rna_wm.c
index 3b8ddd0..4446f5d 100644
--- a/source/blender/makesrna/intern/rna_wm.c
+++ b/source/blender/makesrna/intern/rna_wm.c
@@ -1501,6 +1501,11 @@ static void rna_def_operator(BlenderRNA *brna)
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL | PROP_ENUM_FLAG);
RNA_def_property_ui_text(prop, "Options", "Options for this operator type");
+ prop = RNA_def_property(srna, "macros", PROP_COLLECTION, PROP_NONE);
+ RNA_def_property_collection_sdna(prop, NULL, "macro", NULL);
+ RNA_def_property_struct_type(prop, "Macro");
+ RNA_def_property_ui_text(prop, "Macros", "");
+
RNA_api_operator(srna);
srna = RNA_def_struct(brna, "OperatorProperties", NULL);
More information about the Bf-blender-cvs
mailing list