From 9afe662c125fec5cf62b3976bf32194838f0d740 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 27 Dec 2006 05:04:20 +0000 Subject: 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 --- source/blender/python/api2_2x/Image.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/python/api2_2x/Image.c') diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 15a0582e9c6..20b8054dfed 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -989,15 +989,12 @@ static PyObject *Image_glLoad( BPy_Image * self ) static PyObject *Image_setName( BPy_Image * self, PyObject * args ) { char *name; - char buf[21]; if( !PyArg_ParseTuple( args, "s", &name ) ) return ( EXPP_ReturnPyObjError( PyExc_TypeError, "expected string argument" ) ); - PyOS_snprintf( buf, sizeof( buf ), "%s", name ); - - rename_id( &self->image->id, buf ); + rename_id( &self->image->id, name ); Py_RETURN_NONE; } -- cgit v1.2.3