small mathutils changes.

- fix for returning empty slices (was returning list rather then tuple).
- report invalid type when mathutils_array_parse_fast() fails.
This commit is contained in:
2011-02-04 03:39:06 +00:00
parent 36786c18d7
commit 4be9583894
6 changed files with 8 additions and 7 deletions

View File

@@ -1553,7 +1553,7 @@ static PyObject *Matrix_subscript(MatrixObject* self, PyObject* item)
return NULL;
if (slicelength <= 0) {
return PyList_New(0);
return PyTuple_New(0);
}
else if (step == 1) {
return Matrix_slice(self, start, stop);