diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-21 18:10:59 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-21 18:10:59 +0400 |
commit | fc98a121fcd498dde7e7ae0852ca84458e607e23 (patch) | |
tree | d3a2464a8e3a6e54e92f12b55c543529538a7278 /source/blender/python/api2_2x/Noise.c | |
parent | b3c6cea3153477be75347b2194d9e0d63d541085 (diff) |
Bugfix #4396
(From Timothy) Python vNoise() function couldn't be used, had wrong check
for syntax.
Diffstat (limited to 'source/blender/python/api2_2x/Noise.c')
-rw-r--r-- | source/blender/python/api2_2x/Noise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Noise.c b/source/blender/python/api2_2x/Noise.c index 0ddc28f6203..f3d53a35448 100644 --- a/source/blender/python/api2_2x/Noise.c +++ b/source/blender/python/api2_2x/Noise.c @@ -202,7 +202,7 @@ static PyObject *Noise_vNoise( PyObject * self, PyObject * args ) { float x, y, z, v[3]; int nb = 1; - if( !PyArg_ParseTuple( args, "(fff)", &x, &y, &z, &nb ) ) + if( !PyArg_ParseTuple( args, "(fff)|i", &x, &y, &z, &nb ) ) return NULL; vNoise( x, y, z, nb, v ); return Py_BuildValue( "[fff]", v[0], v[1], v[2] ); |