Fix T38104: mathutils.cell_vector() always returns (0,0,0)

Reviewed By: brecht
This commit is contained in:
Denis Declara 2014-01-08 23:03:09 +01:00 committed by Brecht Van Lommel
parent b4644c658b
commit 55f7a4aebc
Notes: blender-bot 2023-02-14 20:11:59 +01:00
Referenced by issue blender/blender-addons#38104, mathutils.cell_vector() always returns (0,0,0)
1 changed files with 1 additions and 1 deletions

View File

@ -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[] = {