[Bf-blender-cvs] [4987f28ed24] master: Fix T70177: Crash when calling to_track_quat() without arguments
Jacques Lucke
noreply at git.blender.org
Mon Sep 23 09:46:48 CEST 2019
Commit: 4987f28ed248de44e5fc00f197012bed45514ca1
Author: Jacques Lucke
Date: Mon Sep 23 09:46:31 2019 +0200
Branches: master
https://developer.blender.org/rB4987f28ed248de44e5fc00f197012bed45514ca1
Fix T70177: Crash when calling to_track_quat() without arguments
===================================================================
M source/blender/python/mathutils/mathutils_Vector.c
===================================================================
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)) {
More information about the Bf-blender-cvs
mailing list