orange: py2.3 compat

This commit is contained in:
Toni Alatalo
2005-12-18 21:20:11 +00:00
parent 01d05142b1
commit 87d9ca4b99

View File

@@ -1113,8 +1113,10 @@ static PyObject *Object_getPose( BPy_Object * self )
{
/*BPy_Action *py_action = NULL; */
if( !self->object->pose )
Py_RETURN_NONE;
if( !self->object->pose ) {
Py_INCREF( Py_None );
return ( Py_None );
}
else
return Pose_CreatePyObject( self->object->pose );
}