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/Lamp.c | |
parent | aaaae785276e287d9a30a005d14af61524845d72 (diff) |
added comparison function to many python types so you can do == and =!
Diffstat (limited to 'source/blender/python/api2_2x/Lamp.c')
-rw-r--r-- | source/blender/python/api2_2x/Lamp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Lamp.c b/source/blender/python/api2_2x/Lamp.c index 03bb7e2fe30..5d334abf398 100644 --- a/source/blender/python/api2_2x/Lamp.c +++ b/source/blender/python/api2_2x/Lamp.c @@ -1431,8 +1431,7 @@ static void Lamp_dealloc( BPy_Lamp * self ) /*****************************************************************************/ static int Lamp_compare( BPy_Lamp * a, BPy_Lamp * b ) { - Lamp *pa = a->lamp, *pb = b->lamp; - return ( pa == pb ) ? 0 : -1; + return ( a->lamp == b->lamp ) ? 0 : -1; } /*****************************************************************************/ |