Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-12-21 04:34:23 +0300
committerStephen Swaney <sswaney@centurytel.net>2004-12-21 04:34:23 +0300
commit611f8093c175b2a19da94bc7570f6358dfb98778 (patch)
tree9d9b6cd80628501bcc01c806ab016330af43aa7d
parent626503e463ae34401cb0ad9cc796bd28bebe4106 (diff)
bugfix: #2031 World setIpo() method checks for wrong IPO type
wrong constant name.
-rw-r--r--source/blender/python/api2_2x/World.c2
1 files changed, 1 insertions, 1 deletions
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" );