added comparison function to many python types so you can do == and =!
This commit is contained in:
@@ -1033,8 +1033,7 @@ static int World_SetAttr( BPy_World * self, char *name, PyObject * value )
|
||||
|
||||
static int World_Compare( BPy_World * a, BPy_World * b )
|
||||
{
|
||||
World *pa = a->world, *pb = b->world;
|
||||
return ( pa == pb ) ? 0 : -1;
|
||||
return ( a->world == b->world ) ? 0 : -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user