Lamp Ipo blocktype was incorrect

This commit is contained in:
Stephen Swaney
2005-06-10 12:33:09 +00:00
parent ac16f0092c
commit 19cb1ae5e8

View File

@@ -1513,7 +1513,7 @@ static PyObject *Lamp_setIpo( BPy_Lamp * self, PyObject * args )
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"null ipo!" );
if( ipo->blocktype != ID_TE )
if( ipo->blocktype != ID_LA )
return EXPP_ReturnPyObjError( PyExc_TypeError,
"this ipo is not a lamp data ipo" );