diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c
index d35dbef5145fa9d41cf2539537293d595ddc337e..01355dd0322b10fb901415c1d4ea5669d5d6b1af 100644
--- a/source/blender/python/api2_2x/World.c
+++ b/source/blender/python/api2_2x/World.c
@@ -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" );