Skip to content

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

Closed

Description

@izzyboris

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

Activity

  1. added this to the 1.10.15 milestone on Oct 24, 2024
  2. added a commit that references this issue on Oct 24, 2024
    aa0462a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions