From 55f7a4aebc9c59ffd9d3a4e599074ec5528a0843 Mon Sep 17 00:00:00 2001 From: Denis Declara Date: Wed, 8 Jan 2014 23:03:09 +0100 Subject: Fix T38104: mathutils.cell_vector() always returns (0,0,0) Reviewed By: brecht --- source/blender/python/mathutils/mathutils_noise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c index dd4d2805ee2..fe2b00387b3 100644 --- a/source/blender/python/mathutils/mathutils_noise.c +++ b/source/blender/python/mathutils/mathutils_noise.c @@ -792,7 +792,7 @@ static PyObject *M_Noise_cell_vector(PyObject *UNUSED(self), PyObject *args) return NULL; cellNoiseV(vec[0], vec[1], vec[2], r_vec); - return Vector_CreatePyObject(NULL, 3, Py_NEW, NULL); + return Vector_CreatePyObject(r_vec, 3, Py_NEW, NULL); } static PyMethodDef M_Noise_methods[] = { -- cgit v1.2.3