diff options
Diffstat (limited to 'source/blender/python/api2_2x/euler.c')
-rw-r--r-- | source/blender/python/api2_2x/euler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/euler.c b/source/blender/python/api2_2x/euler.c index 8816c286943..53489e0f737 100644 --- a/source/blender/python/api2_2x/euler.c +++ b/source/blender/python/api2_2x/euler.c @@ -347,6 +347,7 @@ static PyObject *Euler_slice(EulerObject * self, int begin, int end) int count; CLAMP(begin, 0, 3); + if (end<0) end= 4+end; CLAMP(end, 0, 3); begin = MIN2(begin,end); @@ -368,6 +369,7 @@ static int Euler_ass_slice(EulerObject * self, int begin, int end, PyObject *e, *f; CLAMP(begin, 0, 3); + if (end<0) end= 4+end; CLAMP(end, 0, 3); begin = MIN2(begin,end); |