diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Mathutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Mathutils.c b/source/blender/python/api2_2x/Mathutils.c index a21c8bb27eb..35db6bfcadf 100644 --- a/source/blender/python/api2_2x/Mathutils.c +++ b/source/blender/python/api2_2x/Mathutils.c @@ -1065,7 +1065,7 @@ PyObject *M_Mathutils_Quaternion(PyObject * self, PyObject * args) } }else{ listObject = PySequence_GetItem(args, 1); - if (PySequence_Check(listObject)) { + if (size>1 && PySequence_Check(listObject)) { size = PySequence_Length(listObject); if (size != 3) { // invalid args/size |