py/rna Operator.cancel method didnt have return defined.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 30 Mar 2011 16:44:18 +0000 (16:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 30 Mar 2011 16:44:18 +0000 (16:44 +0000)
source/blender/makesrna/intern/rna_wm_api.c

index ab2775b7184d79e72f8dbaccf4f7de3be06a84c7..92311641d9873ad54e02699f4c3e6551c3eb7214 100644 (file)
@@ -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)