diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-04 06:39:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-04 06:39:06 +0300 |
commit | 4be95838947e0401fda2a67a867323718074ad86 (patch) | |
tree | ae03a59e7a8e4888a64ef6740b137c88084898ef /source/blender/python/generic/mathutils_euler.c | |
parent | 36786c18d73af794320ff1f0b4d76b4b77ab90f4 (diff) |
small mathutils changes.
- fix for returning empty slices (was returning list rather then tuple).
- report invalid type when mathutils_array_parse_fast() fails.
Diffstat (limited to 'source/blender/python/generic/mathutils_euler.c')
-rw-r--r-- | source/blender/python/generic/mathutils_euler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/mathutils_euler.c b/source/blender/python/generic/mathutils_euler.c index 10c8700148f..0294cfd72e9 100644 --- a/source/blender/python/generic/mathutils_euler.c +++ b/source/blender/python/generic/mathutils_euler.c @@ -446,7 +446,7 @@ static PyObject *Euler_subscript(EulerObject *self, PyObject *item) return NULL; if (slicelength <= 0) { - return PyList_New(0); + return PyTuple_New(0); } else if (step == 1) { return Euler_slice(self, start, stop); |