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/Group.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/Group.c')
-rwxr-xr-x | source/blender/python/api2_2x/Group.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c index 751567a1af2..25c6dba8c6e 100755 --- a/source/blender/python/api2_2x/Group.c +++ b/source/blender/python/api2_2x/Group.c @@ -217,7 +217,6 @@ static int Group_compare( BPy_Group * a, BPy_Group * b ); static int Group_setName( BPy_Group * self, PyObject * value ) { char *name = NULL; - char buf[22]; GROUP_DEL_CHECK_INT(self); @@ -226,9 +225,7 @@ static int Group_setName( BPy_Group * self, PyObject * value ) return EXPP_ReturnIntError( PyExc_TypeError, "expected string argument" ); - PyOS_snprintf( buf, sizeof( buf ), "%s", name ); - - rename_id( &self->group->id, buf ); + rename_id( &self->group->id, name ); return 0; } |