diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-27 08:04:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-27 08:04:20 +0300 |
commit | 9afe662c125fec5cf62b3976bf32194838f0d740 (patch) | |
tree | 97fc847b9379eef836801dcafad0cd92e38cb371 /source/blender/python/api2_2x/Armature.c | |
parent | ed2f161c72722b90a1c4e15f998ca678b79e94b0 (diff) |
renameing datablocks was imposing a name limit on the python side.
This isnt needed because the limit is alredy being set by rename_id()
some other minor changed- use None returning maro
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index a0c84b9aee9..2ccf0b7b774 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -943,14 +943,12 @@ static PyObject *Armature_getName(BPy_Armature *self, void *closure) //Sets the name of the armature static int Armature_setName(BPy_Armature *self, PyObject *value, void *closure) { - char buffer[24]; - char *name = ""; + char *name; if(value){ if(PyString_Check(value)){ name = PyString_AsString(value); - PyOS_snprintf(buffer, sizeof(buffer), "%s", name); - rename_id(&self->armature->id, buffer); + rename_id(&self->armature->id, name); return 0; } } |