mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-20 14:10:39 -04:00
revert implicit request_State and demand_State methods after reconsideration
This commit is contained in:
parent
7d72196ccf
commit
45dd1457c9
@ -160,18 +160,6 @@ class FSM(DirectObject):
|
|||||||
import weakref
|
import weakref
|
||||||
_debugFsms[name]=weakref.ref(self)
|
_debugFsms[name]=weakref.ref(self)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
|
||||||
"""Provides request_State(*args) alias to request('State', *args)
|
|
||||||
and demand_State(*args) alias to demand('State', *args)."""
|
|
||||||
|
|
||||||
if name.startswith('request_'):
|
|
||||||
return lambda *args, **kwargs: self.request(name[8:], *args, **kwargs)
|
|
||||||
if name.startswith('demand_'):
|
|
||||||
return lambda *args, **kwargs: self.request(name[7:], *args, **kwargs)
|
|
||||||
if name in self.__dict__:
|
|
||||||
return self.__dict__[name]
|
|
||||||
raise AttributeError(name)
|
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
# A convenience function to force the FSM to clean itself up
|
# A convenience function to force the FSM to clean itself up
|
||||||
# by transitioning to the "Off" state.
|
# by transitioning to the "Off" state.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user