diff options
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 69faf742f5a..ef9dbc804b7 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -1665,7 +1665,7 @@ static PyObject *Ipo_getNBezPoints( BPy_Ipo * self, PyObject * args ) --num; } - if( num < 0 && !icu ) + if( num < 0 || !icu ) return EXPP_ReturnPyObjError( PyExc_IndexError, "index out of range" ); |