From 611f8093c175b2a19da94bc7570f6358dfb98778 Mon Sep 17 00:00:00 2001 From: Stephen Swaney <sswaney@centurytel.net> Date: Tue, 21 Dec 2004 01:34:23 +0000 Subject: [PATCH] bugfix: #2031 World setIpo() method checks for wrong IPO type wrong constant name. --- source/blender/python/api2_2x/World.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/api2_2x/World.c b/source/blender/python/api2_2x/World.c index d35dbef5145..01355dd0322 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" ); -- GitLab