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
This commit is contained in:
2006-12-27 05:04:20 +00:00
parent ed2f161c72
commit 9afe662c12
23 changed files with 138 additions and 262 deletions

View File

@@ -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;
}