

def remove_action(self, action):
    'Removes an action from the node actions container, potentially \n        calling ``action.stop()``.\n\n        If action was running, :meth:`.Action.stop` is called.\n        Mandatory interface to remove actions in the node actions container.\n        When skipping this there is the posibility to double call the \n        ``action.stop``\n\n        Arguments:\n            action (Action):\n                Action to be removed.\n                Must be the return value for a :meth:`do` call\n        '
    assert (action in self.actions)
    if (not action.scheduled_to_remove):
        action.scheduled_to_remove = True
        action.stop()
        action.target = None
        self.to_remove.append(action)

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.remove_action/original