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 09:47:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-23 09:47:45 +0400
commitb844792bd561c79aa35a6fabdb96c78a42741061 (patch)
treeb922dcc2f80d15fbfc9e4c6ff27dc69c0dbefe1f /source/blender/makesrna/intern/rna_ui_api.c
parentf956e94d131c55625a03569a7bb19d36d4aac9d3 (diff)
rename UI function
layout.prop_object() --> prop_search(). The internal name is uiItemPointerR, in python this can translate into into an Object, however this is misleading. It can be confused with a blender Object and uiItemPointerR can also be used for strings.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_ui_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c
index 720666a6180..eef9e89f8df 100644
--- a/source/blender/makesrna/intern/rna_ui_api.c
+++ b/source/blender/makesrna/intern/rna_ui_api.c
@@ -182,7 +182,7 @@ void RNA_api_ui_layout(StructRNA *srna)
RNA_def_property_flag(parm, PROP_REQUIRED);
api_ui_item_common(func);
- func= RNA_def_function(srna, "prop_object", "uiItemPointerR");
+ func= RNA_def_function(srna, "prop_search", "uiItemPointerR");
api_ui_item_rna_common(func);
parm= RNA_def_pointer(func, "search_data", "AnyType", "", "Data from which to take collection to search in.");
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_RNAPTR|PROP_NEVER_NULL);