diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-11-16 22:00:47 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-11-16 22:00:47 +0300 |
commit | 6b407d488e936572c3a2cdefc4665258ced0743c (patch) | |
tree | a9ae3b74ed4726da44c4f513cd9d5cad38ad8f3d /source/blender/python/api2_2x/constant.c | |
parent | b0995a2a84f84c665817de87500a1397916d3380 (diff) |
-- fix bug in constant_repr() which printed the final key twice
Diffstat (limited to 'source/blender/python/api2_2x/constant.c')
-rw-r--r-- | source/blender/python/api2_2x/constant.c | 4 |
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, "]"); |