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:
authorCampbell Barton <ideasman42@gmail.com>2010-08-23 10:06:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-23 10:06:26 +0400
commit69067cc2d57c089e9bf8ef3260cc65ce7105a5c8 (patch)
treeff731af422dc0c56f6ac56ebccd1bb604b6eecea /source/blender/makesrna/intern/rna_ui_api.c
parentb844792bd561c79aa35a6fabdb96c78a42741061 (diff)
new UI rna function
layout.prop_search_self(), the same as layout.prop_search() except it uses an attribute of the collection. A number of collections have an 'active' member which couldnt be used with prop_search() and meant we had a mix of active properties being in collections and directly added as properties.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_ui_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index eef9e89f8df..d36ec7fc1c3 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -189,6 +189,12 @@ void RNA_api_ui_layout(StructRNA *srna)
parm= RNA_def_string(func, "search_property", "", 0, "", "Identifier of search collection property.");
RNA_def_property_flag(parm, PROP_REQUIRED);
api_ui_item_common(func);
+
+ func= RNA_def_function(srna, "prop_search_self", "uiItemPointerSubR");
+ api_ui_item_rna_common(func);
+ parm= RNA_def_string(func, "search_property", "", 0, "", "Identifier of search collection property.");
+ RNA_def_property_flag(parm, PROP_REQUIRED);
+ api_ui_item_common(func);
func= RNA_def_function(srna, "operator", "rna_uiItemO");
api_ui_item_op_common(func);