From 69246d908018abe7c47a924dd1a16183bc8ec803 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Nov 2010 13:43:51 +0000 Subject: rna invoke function wm.invoke_confirm() for python access. --- source/blender/makesrna/intern/rna_wm_api.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesrna/intern/rna_wm_api.c') diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c index 5f289514f7a..5aa68bc6d4e 100644 --- a/source/blender/makesrna/intern/rna_wm_api.c +++ b/source/blender/makesrna/intern/rna_wm_api.c @@ -132,6 +132,11 @@ void RNA_api_wm(StructRNA *srna) func= RNA_def_function(srna, "invoke_popup", "WM_operator_ui_popup"); RNA_def_function_ui_description(func, "Operator popup invoke."); rna_generic_op_invoke(func, WM_GEN_INVOKE_SIZE|WM_GEN_INVOKE_RETURN); + + func= RNA_def_function(srna, "invoke_confirm", "WM_operator_confirm"); + RNA_def_function_ui_description(func, "Operator confirmation."); + rna_generic_op_invoke(func, WM_GEN_INVOKE_EVENT|WM_GEN_INVOKE_RETURN); + } void RNA_api_operator(StructRNA *srna) -- cgit v1.2.3