From 19cb1ae5e8933d0dbeec2b9fb18f833bb9f67bdc Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Fri, 10 Jun 2005 12:33:09 +0000 Subject: Lamp Ipo blocktype was incorrect --- source/blender/python/api2_2x/Lamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') diff --git a/source/blender/python/api2_2x/Lamp.c b/source/blender/python/api2_2x/Lamp.c index f3eefd8675c..6d2b6260823 100644 --- a/source/blender/python/api2_2x/Lamp.c +++ b/source/blender/python/api2_2x/Lamp.c @@ -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" ); -- cgit v1.2.3