Browse Source

fix crash in clearToInitial()

David Rose 19 years ago
parent
commit
3f030819a1
1 changed files with 6 additions and 1 deletions
  1. 6 1
      direct/src/interval/MetaInterval.py

+ 6 - 1
direct/src/interval/MetaInterval.py

@@ -379,7 +379,12 @@ class MetaInterval(CMetaInterval):
         self.__manager.removeInterval(self)
         self.privPostEvent()
 
-
+    def clearToInitial(self):
+        # This is overloaded at the Python level to properly call
+        # pause() at the Python level, then upcall to finish the job
+        # at the C++ level.
+        self.pause()
+        CMetaInterval.clearToInitial(self)
 
     # Internal functions: