bugfix: #2031 World setIpo() method checks for wrong IPO type

wrong constant name.
This commit is contained in:
Stephen Swaney
2004-12-21 01:34:23 +00:00
parent 626503e463
commit 611f8093c1

View File

@@ -444,7 +444,7 @@ static PyObject *World_setIpo( BPy_World * self, PyObject * args )
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"null ipo!" );
if( ipo->blocktype != ID_CA )
if( ipo->blocktype != ID_WO )
return EXPP_ReturnPyObjError( PyExc_TypeError,
"this ipo is not a World type ipo" );