Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSM object has no attribute 'notifier' in requestNext/requestPrev #1644

Open
izzyboris opened this issue Apr 21, 2024 · 0 comments
Open

FSM object has no attribute 'notifier' in requestNext/requestPrev #1644

izzyboris opened this issue Apr 21, 2024 · 0 comments

Comments

@izzyboris
Copy link

Description

Attemping to use FSM.requestNext() or FSM.requestPrev() without calling setStateArray() excepts with AttributeError instead of logging as intended.

Steps to Reproduce

from direct.fsm.FSM import FSM
f = FSM("test")
f.requestNext()

Produces:

  File "C:\Panda3D-1.10.14-x64\direct\fsm\FSM.py", line 424, in requestNext
    assert self.notifier.debug(
           ^^^^^^^^^^^^^
AttributeError: 'FSM' object has no attribute 'notifier'

Environment

  • Operating system: Windows 11
  • System architecture: x64
  • Panda3D version: 1.10.14
  • Installation method: pip
  • Python version (if using Python): 3.11
  • Compiler (if using C++): N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant