Skip to content
Snippets Groups Projects
Commit 611f8093 authored by Stephen Swaney's avatar Stephen Swaney
Browse files

bugfix: #2031 World setIpo() method checks for wrong IPO type

wrong constant name.
parent 626503e4
No related branches found
No related tags found
No related merge requests found
...@@ -444,7 +444,7 @@ static PyObject *World_setIpo( BPy_World * self, PyObject * args ) ...@@ -444,7 +444,7 @@ static PyObject *World_setIpo( BPy_World * self, PyObject * args )
return EXPP_ReturnPyObjError( PyExc_RuntimeError, return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"null ipo!" ); "null ipo!" );
if( ipo->blocktype != ID_CA ) if( ipo->blocktype != ID_WO )
return EXPP_ReturnPyObjError( PyExc_TypeError, return EXPP_ReturnPyObjError( PyExc_TypeError,
"this ipo is not a World type ipo" ); "this ipo is not a World type ipo" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment