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