(From Timothy) Python vNoise() function couldn't be used, had wrong check
for syntax.
This commit is contained in:
2006-06-21 14:10:59 +00:00
parent b3c6cea315
commit fc98a121fc

View File

@@ -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] );