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:
authorKen Hughes <khughes@pacific.edu>2005-11-16 22:00:47 +0300
committerKen Hughes <khughes@pacific.edu>2005-11-16 22:00:47 +0300
commit6b407d488e936572c3a2cdefc4665258ced0743c (patch)
treea9ae3b74ed4726da44c4f513cd9d5cad38ad8f3d /source/blender/python/api2_2x/constant.c
parentb0995a2a84f84c665817de87500a1397916d3380 (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.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, "]");