Replace unneccesary eval
This commit is contained in:
parent
0dc071261b
commit
5c4ce667a5
@ -211,11 +211,9 @@ init 5 python:
|
||||
|
||||
self.set_pose(pose or self.walk)
|
||||
|
||||
# Note: Warper names and their count can change over time,
|
||||
# so it's easier to just evaluate the input.
|
||||
# List of available warpers:
|
||||
# https://www.renpy.org/doc/html/atl.html?#warpers
|
||||
warper = eval(f"_warper.{warper}")
|
||||
warper = getattr(_warper, warper, _warper.linear)
|
||||
|
||||
distances = []
|
||||
times = []
|
||||
|
Loading…
Reference in New Issue
Block a user