Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/generic/noise_py_api.c')
-rw-r--r--source/blender/python/generic/noise_py_api.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/generic/noise_py_api.c b/source/blender/python/generic/noise_py_api.c
index f4c662f3170..dbae0fb13bc 100644
--- a/source/blender/python/generic/noise_py_api.c
+++ b/source/blender/python/generic/noise_py_api.c
@@ -30,6 +30,11 @@
* ***** END GPL LICENSE BLOCK *****
*/
+/** \file blender/python/generic/noise_py_api.c
+ * \ingroup pygen
+ */
+
+
/************************/
/* Blender Noise Module */
/************************/
@@ -207,8 +212,10 @@ static void randuvec(float v[3])
r = (float)sqrt(r);
v[0] = (float)(r * cos(a));
v[1] = (float)(r * sin(a));
- } else
+ }
+ else {
v[2] = 1.f;
+ }
}
static PyObject *Noise_random(PyObject *UNUSED(self))