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>2009-12-10 14:20:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-10 14:20:43 +0300
commit901962c6213d896c2e8434b23cd2a3ffbc9a615a (patch)
treea1002b889a2238edf116c8d6cb8504cf50ea1fc6
parent11ca70b42d2bb46202365358f40e63822a42a840 (diff)
return value was included in the list of optional args for function-rna error message
-rw-r--r--source/blender/python/intern/bpy_rna.c3
1 files changed, 3 insertions, 0 deletions
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;
}