Stop using mutable default values for parameters
This commit is contained in:
parent
314f971609
commit
0d8e91b5a5
@ -158,7 +158,7 @@ init 5 python:
|
|||||||
self.pose = pose
|
self.pose = pose
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
def place(self, pos=None, speed=1.0, pause=False, at_list=[], pose=None, xzoom=None):
|
def place(self, pos=None, speed=1.0, pause=False, at_list=(), pose=None, xzoom=None):
|
||||||
self.set_pose(pose or self.idle)
|
self.set_pose(pose or self.idle)
|
||||||
|
|
||||||
self.atl_time = 0
|
self.atl_time = 0
|
||||||
@ -190,7 +190,7 @@ init 5 python:
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def move(self, path, speed=1.0, pause=True, loop=False, warper="linear", at_list=[], pose=None, repeat=None, wrap=True, reverse=True):
|
def move(self, path, speed=1.0, pause=True, loop=False, warper="linear", at_list=(), pose=None, repeat=None, wrap=True, reverse=True):
|
||||||
"""Makes chibi move"""
|
"""Makes chibi move"""
|
||||||
|
|
||||||
self.atl_looping = loop
|
self.atl_looping = loop
|
||||||
|
Loading…
Reference in New Issue
Block a user