Fix various gcc warnings.

This commit is contained in:
Ken Hughes
2006-03-19 20:45:50 +00:00
parent ee5d54c0fa
commit 4fcd19013b
3 changed files with 3 additions and 6 deletions

View File

@@ -3747,18 +3747,15 @@ static int Object_setAttr( BPy_Object * obj, char *name, PyObject * value )
if( StringEqual( name, "dupliGroup" ) ) {
PyObject *pyob=NULL;
BPy_Group *pygrp=NULL;
Group *group;
if( !PyArg_Parse( value, "O", &pyob) )
return ( EXPP_ReturnPyObjError( PyExc_TypeError,
"expected a group" ) );
return EXPP_ReturnIntError( PyExc_TypeError,
"expected a group" );
if (pyob==Py_None) {
object->dup_group= NULL;
} else {
pygrp= (BPy_Group *)pyob;
object->dup_group= pygrp->group;
}
return 0;
}