Browse Source

ignoreAll in del

Dave Schuyler 20 years ago
parent
commit
86faf19707
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/showbase/DirectObject.py

+ 4 - 4
direct/src/showbase/DirectObject.py

@@ -8,10 +8,10 @@ class DirectObject:
     def __init__(self):
         pass
 
-    # This destructor is useful for debugging leaks
-    #def __del__(self):
-    #    print "Destructing: ", self.__class__.__name__
-
+    def __del__(self):
+        self.ignoreAll()
+        # This next line is useful for debugging leaks
+        #print "Destructing: ", self.__class__.__name__
 
     # Wrapper functions to have a cleaner, more object oriented approach to
     # the messenger functionality.