diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-26 03:52:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-26 03:52:01 +0300 |
commit | 65d40b3eeb8bd92ec74a2c3c03c73a331dccf668 (patch) | |
tree | 08fed2dcf3387db7217a5c1dbcf8d14d693950e2 /source/blender/makesrna/intern | |
parent | da4c3f30d984b361d7c00b103ec329d5263779ff (diff) |
Docs: invoke_search_popup uses bl_property
Also add code example in docs.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_api.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c index 089504e342a..cbbe50ccf03 100644 --- a/source/blender/makesrna/intern/rna_wm_api.c +++ b/source/blender/makesrna/intern/rna_wm_api.c @@ -459,8 +459,11 @@ void RNA_api_wm(StructRNA *srna) /* invoke enum */ func = RNA_def_function(srna, "invoke_search_popup", "rna_Operator_enum_search_invoke"); - RNA_def_function_ui_description(func, "Operator search popup invoke (search in values of " - "operator's type 'prop' EnumProperty, and execute it on confirmation)"); + RNA_def_function_ui_description( + func, + "Operator search popup invoke which " + "searches values of the operator's :class:`bpy.types.Operator.bl_property` " + "(which must be an EnumProperty), executing it on confirmation"); rna_generic_op_invoke(func, 0); /* invoke functions, for use with python */ |