Browse Source

*** empty log message ***

Joe Shochet 24 years ago
parent
commit
1e413cb018
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/gui/Button.py

+ 4 - 0
direct/src/gui/Button.py

@@ -163,6 +163,10 @@ class Button(DirectObject):
                 self.button.inactive()
                 self.button.inactive()
             else:
             else:
                 self.button.up()
                 self.button.up()
+                # Turning the button inactive stops the behavior, so
+                # we must restart it here
+                if (self.event != None):
+                    self.button.startBehavior()
 
 
     def manage(self, nodepath = aspect2d):
     def manage(self, nodepath = aspect2d):
         if not self.managed:
         if not self.managed: