diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-02 12:48:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-02 12:48:04 +0300 |
commit | b2acdd69b037b8363dd2c214ccc0a2af691ab017 (patch) | |
tree | 5a6333eb58c7d762b5b4d7ce3673a22192d9b832 /source/blender/python/api2_2x/vector.c | |
parent | b5343551acd7069c5ba9bd028b42a11fab2f8e5e (diff) |
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.
Diffstat (limited to 'source/blender/python/api2_2x/vector.c')
-rw-r--r-- | source/blender/python/api2_2x/vector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/vector.c b/source/blender/python/api2_2x/vector.c index 537a82c0a86..f969a5d1bcf 100644 --- a/source/blender/python/api2_2x/vector.c +++ b/source/blender/python/api2_2x/vector.c @@ -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]; |