diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-20 06:44:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-20 06:44:57 +0400 |
commit | 7785ead4eb64f9702d7a59060e73b3e121e674a7 (patch) | |
tree | 0ea55feb030d8eff70bfe9758f3c4aafe1e7daf8 /source/blender/python/generic/quat.h | |
parent | d0e8acaf2902235afd0b3fbd2e408c1cf04689be (diff) |
ObColor wasnt converted into an RNA string.
Updated Mathutils.Vector/Euler/Quaternion/Matrix so these are types rather then module methods, each type now has a tp_new function, matching python builtins float/int/str.
Also cleaned up float conversion and arg passing.
Changed buttons_objects.py...
if ob in groups.objects: # no longer works
if ob.name in groups.objects: # is the new syntax
...its more dict like and a lot faster (avoids python iterating over each item and comparing each, use a single rna lookup instead).
Diffstat (limited to 'source/blender/python/generic/quat.h')
-rw-r--r-- | source/blender/python/generic/quat.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/python/generic/quat.h b/source/blender/python/generic/quat.h index 8887b147705..cfb50e4dbe1 100644 --- a/source/blender/python/generic/quat.h +++ b/source/blender/python/generic/quat.h @@ -54,16 +54,6 @@ be stored in py_data) or be a wrapper for data allocated through blender (stored in blend_data). This is an either/or struct not both*/ //prototypes -PyObject *Quaternion_Identity( QuaternionObject * self ); -PyObject *Quaternion_Negate( QuaternionObject * self ); -PyObject *Quaternion_Conjugate( QuaternionObject * self ); -PyObject *Quaternion_Inverse( QuaternionObject * self ); -PyObject *Quaternion_Normalize( QuaternionObject * self ); -PyObject *Quaternion_ToEuler( QuaternionObject * self, PyObject *args ); -PyObject *Quaternion_ToMatrix( QuaternionObject * self ); -PyObject *Quaternion_Cross( QuaternionObject * self, QuaternionObject * value ); -PyObject *Quaternion_Dot( QuaternionObject * self, QuaternionObject * value ); -PyObject *Quaternion_copy( QuaternionObject * self ); PyObject *newQuaternionObject( float *quat, int type ); #endif /* EXPP_quat_h */ |