diff --git a/direct/src/p3d/SeqValue.py b/direct/src/p3d/SeqValue.py index 68b655bce3..e83c44dc6a 100644 --- a/direct/src/p3d/SeqValue.py +++ b/direct/src/p3d/SeqValue.py @@ -77,6 +77,12 @@ class SeqValue: """ Compares to another seq value. """ return cmp(self.value, other.value) + def __lt__(self, other): + return self.value < other.value + + def __gt__(self, other): + return self.value > other.value + def __bool__(self): return bool(self.value)