From 901962c6213d896c2e8434b23cd2a3ffbc9a615a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 10 Dec 2009 11:20:43 +0000 Subject: return value was included in the list of optional args for function-rna error message --- source/blender/python/intern/bpy_rna.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index cfd455e045c..ad695344038 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -2671,6 +2671,9 @@ static PyObject * pyrna_func_call(PyObject *self, PyObject *args, PyObject *kw) RNA_parameter_list_begin(&parms, &iter); for(; iter.valid; RNA_parameter_list_next(&iter)) { parm= iter.parm; + if(RNA_property_flag(parm) & PROP_RETURN) + continue; + BLI_dynstr_appendf(good_args, first ? "%s" : ", %s", RNA_property_identifier(parm)); first= FALSE; } -- cgit v1.2.3