diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-10-06 20:48:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-10-06 20:48:28 +0400 |
commit | dda63a9dde8600f85e43bc4d654cbe80d07cab6e (patch) | |
tree | 76010b4123957872bba0dbcd399da90e590ddfff /source/blender/python/api2_2x/Pose.c | |
parent | aaaae785276e287d9a30a005d14af61524845d72 (diff) |
added comparison function to many python types so you can do == and =!
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index 6429696b864..39086a14881 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -332,6 +332,12 @@ static void Pose_dealloc(BPy_Pose *self) Pose_Type.tp_free(self); return; } +//------------------------tp_cmp +//This compares 2 pose types +static int Pose_compare(BPy_Pose *a, BPy_Pose *b ) +{ + return ( a->pose== b->pose ) ? 0 : -1; +} //------------------------tp_repr //This is the string representation of the object static PyObject *Pose_repr(BPy_Pose *self) |