diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-29 01:53:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-29 01:53:49 +0400 |
commit | 0059e5118d3bafe097cdbcabcdedbb736abb63f2 (patch) | |
tree | 4d34107e705596acbd6555735c2ef5ac1140f96a /source | |
parent | 288631d2152d8f86d99d1ff837f3719394c0fb5e (diff) |
passing None to Blender.Mathutils.Quaternion would segfault
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 |