Commit: 55f7a4aebc9c59ffd9d3a4e599074ec5528a0843
Author: Denis Declara
Date: Wed Jan 8 23:03:09 2014 +0100
https://developer.blender.org/rB55f7a4aebc9c59ffd9d3a4e599074ec5528a0843
Fix T38104: mathutils.cell_vector() always returns (0,0,0)
Reviewed By: brecht
===================================================================
M source/blender/python/mathutils/mathutils_noise.c
===================================================================
diff --git a/source/blender/python/mathutils/mathutils_noise.c
b/source/blender/python/mathutils/mathutils_noise.c
index dd4d280..fe2b003 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[] = {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs