diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-08-21 17:52:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-08-21 17:52:32 +0400 |
commit | 0925d80cfadcd1827d43bf9fd4b00ee99fe4cd81 (patch) | |
tree | bd6cdd97c63c214a6680c6a918a8ebb32b813ed2 /source/blender/python/api2_2x/vector.h | |
parent | 0dcfab3e3268bac17b37e382bddbbf5169780914 (diff) |
removed the unpopular 'ed' functions, and added .copy() to Mathutils vector and matrix
(inverted, normalized, transposed)
making an inverted copy of an objects matrix used to be.. (2.42)
imat= Mathutils.Matrix(ob.matrixWorld)
imat.invert()
# inverted.. I added but now removed
imat= ob.matrixWorld.inverted()
# with copy (current functionality)...
imat= ob.matrixWorld.copy().invert()
Diffstat (limited to 'source/blender/python/api2_2x/vector.h')
-rw-r--r-- | source/blender/python/api2_2x/vector.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/vector.h b/source/blender/python/api2_2x/vector.h index 631bbab215d..f66d003ef11 100644 --- a/source/blender/python/api2_2x/vector.h +++ b/source/blender/python/api2_2x/vector.h @@ -62,14 +62,13 @@ blender (stored in blend_data). This is an either/or struct not both*/ //prototypes PyObject *Vector_Zero( VectorObject * self ); PyObject *Vector_Normalize( VectorObject * self ); -PyObject *Vector_Normalized( VectorObject * self ); PyObject *Vector_Negate( VectorObject * self ); -PyObject *Vector_Negated( VectorObject * self ); PyObject *Vector_Resize2D( VectorObject * self ); PyObject *Vector_Resize3D( VectorObject * self ); PyObject *Vector_Resize4D( VectorObject * self ); PyObject *Vector_toPoint( VectorObject * self ); PyObject *Vector_ToTrackQuat( VectorObject * self, PyObject * args ); +PyObject *Vector_copy( VectorObject * self ); PyObject *newVectorObject(float *vec, int size, int type); #endif /* EXPP_vector_h */ |