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:
authorJacques Lucke <mail@jlucke.com>2019-09-23 10:46:31 +0300
committerJacques Lucke <mail@jlucke.com>2019-09-23 10:46:31 +0300
commit4987f28ed248de44e5fc00f197012bed45514ca1 (patch)
tree9124ee9086e78956f029fd3143fd09c1e623b5b6 /source
parent73a6fcfa80020615f081b75aeb6a6ed90405097a (diff)
Fix T70177: Crash when calling to_track_quat() without arguments
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/mathutils/mathutils_Vector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/mathutils/mathutils_Vector.c b/source/blender/python/mathutils/mathutils_Vector.c
index aa7cbadde14..87de0ff546e 100644
--- a/source/blender/python/mathutils/mathutils_Vector.c
+++ b/source/blender/python/mathutils/mathutils_Vector.c
@@ -691,7 +691,8 @@ PyDoc_STRVAR(Vector_to_track_quat_doc,
static PyObject *Vector_to_track_quat(VectorObject *self, PyObject *args)
{
float vec[3], quat[4];
- const char *strack, *sup;
+ const char *strack = NULL;
+ const char *sup = NULL;
short track = 2, up = 1;
if (!PyArg_ParseTuple(args, "|ss:to_track_quat", &strack, &sup)) {