ソースを参照

fix bug with __neg__

David Rose 21 年 前
コミット
9c079fa100
1 ファイル変更3 行追加0 行削除
  1. 3 0
      direct/src/extensions/ConfigVariable-extensions.py

+ 3 - 0
direct/src/extensions/ConfigVariable-extensions.py

@@ -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)