Actually do not forgive wrong warper names

This commit is contained in:
Gouvernathor 2024-04-06 00:50:50 +02:00
parent 96767c63ae
commit 4de4788b16

View File

@ -195,7 +195,7 @@ init 5 python:
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=_warper.linear, at_list=(), pose=None, repeat=None, wrap=True, reverse=True):
"""Makes chibi move"""
self.atl_looping = loop
@ -226,7 +226,7 @@ init 5 python:
if isinstance(warper, str):
# List of available warpers:
# https://www.renpy.org/doc/html/atl.html?#warpers
warper = getattr(_warper, warper, _warper.linear)
warper = getattr(_warper, warper)
distances = []
times = []