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:
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/api2_2x/constant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/constant.c b/source/blender/python/api2_2x/constant.c
index 76c539be545..2aec37bc54d 100644
--- a/source/blender/python/api2_2x/constant.c
+++ b/source/blender/python/api2_2x/constant.c
@@ -146,10 +146,10 @@ static PyObject *constant_repr(BPy_constant * self)
} else {
strcat(str,"{");
while (PyDict_Next(self->dict, &pos, &key, &value)) {
+ if( pos != 1 )
+ strcat (str, ", ");
strcat (str, PyString_AsString(key));
- strcat (str, ", ");
}
- strcat(str, PyString_AsString(key));
strcat(str,"}");
}
strcat(str, "]");