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/Image.c | |
parent | aaaae785276e287d9a30a005d14af61524845d72 (diff) |
added comparison function to many python types so you can do == and =!
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r-- | source/blender/python/api2_2x/Image.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index bd3c76c1ee5..16e537e37d4 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -70,7 +70,6 @@ current image frame, some images change frame if they are a sequence */ static PyObject *M_Image_New( PyObject * self, PyObject * args ); static PyObject *M_Image_Get( PyObject * self, PyObject * args ); static PyObject *M_Image_GetCurrent( PyObject * self ); -static PyObject *M_Image_SetCurrent( PyObject * self, PyObject * args ); static PyObject *M_Image_Load( PyObject * self, PyObject * args ); @@ -1261,8 +1260,7 @@ static int Image_setAttr( BPy_Image * self, char *name, PyObject * value ) /*****************************************************************************/ static int Image_compare( BPy_Image * a, BPy_Image * b ) { - Image *pa = a->image, *pb = b->image; - return ( pa == pb ) ? 0 : -1; + return ( a->image == b->image ) ? 0 : -1; } /*****************************************************************************/ |