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-11-22 16:43:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-22 16:43:51 +0300
commit69246d908018abe7c47a924dd1a16183bc8ec803 (patch)
treeb1ca2d49e1755eea8d53808564ccb6bc7808d6e9 /source/blender/makesrna/intern/rna_wm_api.c
parent71079a47d3b837ff04a31faa79296b678c50c1aa (diff)
rna invoke function wm.invoke_confirm() for python access.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c5
1 files changed, 5 insertions, 0 deletions
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)