diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-11-19 18:44:43 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-11-19 18:44:43 +0300 |
commit | 58edf6b40d3716dda9a4409e40855026b1075768 (patch) | |
tree | 99b7f8e3e88d4ba150e15dda517808de8a01f3e6 /source/blender/python/api2_2x/constant.c | |
parent | ca320003f4c6129c559d2d8f1628b74e8d7a5066 (diff) |
-- fix printing of constant dicts
-- remove "TF_" from constant names in M_Mesh_FaceTranspModesDict()
Diffstat (limited to 'source/blender/python/api2_2x/constant.c')
-rw-r--r-- | source/blender/python/api2_2x/constant.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/constant.c b/source/blender/python/api2_2x/constant.c index 2aec37bc54d..41a845184d4 100644 --- a/source/blender/python/api2_2x/constant.c +++ b/source/blender/python/api2_2x/constant.c @@ -144,10 +144,13 @@ static PyObject *constant_repr(BPy_constant * self) if(value) { strcat(str, PyString_AsString(value)); } else { + short sep = 0; strcat(str,"{"); while (PyDict_Next(self->dict, &pos, &key, &value)) { - if( pos != 1 ) + if( sep ) strcat (str, ", "); + else + sep = 1; strcat (str, PyString_AsString(key)); } strcat(str,"}"); |