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:
authorCampbell Barton <ideasman42@gmail.com>2007-03-02 12:48:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-02 12:48:04 +0300
commitb2acdd69b037b8363dd2c214ccc0a2af691ab017 (patch)
tree5a6333eb58c7d762b5b4d7ce3673a22192d9b832 /source/blender/python/api2_2x/vector.c
parentb5343551acd7069c5ba9bd028b42a11fab2f8e5e (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.c2
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];