diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-24 07:02:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-24 07:02:27 +0400 |
commit | 5c604e5524ace49caeda7c0bff9443afc43b236f (patch) | |
tree | aab6dd5d645b92a7d451b3d62a16d0d0e716d318 /source/blender/makesrna/intern/rna_ui_api.c | |
parent | 48e34b995686d50177932660ec422528eb4a6da8 (diff) |
remove recently added rna function uilayout.prop_search_self() and instead allow collections to be coerced into rna structs when they define a type.
eg:
row.prop_search_self(scene, "active", "keying_sets", text="")
...becomes
row.prop_search(scene.keying_sets, "active", scene, "keying_sets", text="")
This is more flexible since it works for other UI functions too.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_ui_api.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_ui_api.c b/source/blender/makesrna/intern/rna_ui_api.c index d36ec7fc1c3..eef9e89f8df 100644 --- a/source/blender/makesrna/intern/rna_ui_api.c +++ b/source/blender/makesrna/intern/rna_ui_api.c @@ -189,12 +189,6 @@ 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); |