vector.c - bugfix, vec.w accessed vec[4] not vec[3]! (probably my fault)
Texture.c - added "val = tex.evaluate(vec)" so you can find the color/intensity at a given loaction for a texture.
This commit is contained in:
@@ -959,7 +959,7 @@ static PyObject *Vector_getAxis( VectorObject * self, void *type )
|
||||
return EXPP_ReturnPyObjError(PyExc_AttributeError,
|
||||
"vector.w: error, cannot get this axis for a 3D vector\n");
|
||||
|
||||
return PyFloat_FromDouble(self->vec[4]);
|
||||
return PyFloat_FromDouble(self->vec[3]);
|
||||
default:
|
||||
{
|
||||
char errstr[1024];
|
||||
|
||||
Reference in New Issue
Block a user