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>2011-03-30 20:44:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-30 20:44:18 +0400
commit9c01b941485d2a70d9fc54361ac41b430989a466 (patch)
treeba1804f3b8489072e0ed944222313b6e393ac8d3 /source/blender/makesrna/intern/rna_wm_api.c
parent37f3bbae90febc06a4f4b4b22749794b1392c0a3 (diff)
py/rna Operator.cancel method didnt have return defined.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_wm_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c
index ab2775b7184..92311641d98 100644
--- a/source/blender/makesrna/intern/rna_wm_api.c
+++ b/source/blender/makesrna/intern/rna_wm_api.c
@@ -249,6 +249,9 @@ void RNA_api_operator(StructRNA *srna)
RNA_def_function_flag(func, FUNC_REGISTER_OPTIONAL);
parm= RNA_def_pointer(func, "context", "Context", "", "");
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
+
+ parm= RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); // better name?
+ RNA_def_function_return(func, parm);
}
void RNA_api_macro(StructRNA *srna)