mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
fix bug with __neg__
This commit is contained in:
parent
2b81326132
commit
9c079fa100
@ -30,6 +30,9 @@
|
||||
def __cmp__(self, other):
|
||||
return self.getValue().__cmp__(other)
|
||||
|
||||
def __neg__(self):
|
||||
return -self.getValue()
|
||||
|
||||
def __coerce__(self, other):
|
||||
return (self.getValue(), other)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user