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

Reviewed By: brecht
This commit is contained in:
2014-01-08 23:03:09 +01:00
committed by Brecht Van Lommel
parent b4644c658b
commit 55f7a4aebc

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