소스 검색

*** 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: