Skip to content

Commit

Permalink
Fix game mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiefl committed Sep 15, 2024
1 parent 4ced109 commit 9bb92fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pooltool/ani/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def __init__(self, config: ShowBaseConfig):
# https://discourse.panda3d.org/t/cant-change-base-background-after-simplepbr-init/28945
Global.base.setBackgroundColor(0.04, 0.04, 0.04)

_init_simplepbr()

if isinstance(self.win, GraphicsWindow):
mouse.init()

Expand Down Expand Up @@ -453,7 +455,7 @@ class Game(Interface):
"""This class runs the pooltool application"""

def __init__(self, config=ShowBaseConfig.default()):
Interface.__init__(self, showbase_config=config)
Interface.__init__(self, config=config)

# FIXME can this be added to MenuMode.enter? It produces a lot of events that
# end up being part of the baseline due to the update_event_baseline call below.
Expand Down

0 comments on commit 9bb92fc

Please sign in to comment.