Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-05-29 01:53:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-29 01:53:49 +0400
commit0059e5118d3bafe097cdbcabcdedbb736abb63f2 (patch)
tree4d34107e705596acbd6555735c2ef5ac1140f96a /source
parent288631d2152d8f86d99d1ff837f3719394c0fb5e (diff)
passing None to Blender.Mathutils.Quaternion would segfault
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Mathutils.c2
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