瀏覽代碼

*** empty log message ***

Joe Shochet 24 年之前
父節點
當前提交
1e413cb018
共有 1 個文件被更改,包括 4 次插入0 次删除
  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()
             else:
                 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):
         if not self.managed: