mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 23:19:33 +00:00
drone: Reset transformed frames before transform in animation
This commit is contained in:
@@ -297,6 +297,7 @@ class Animation(object):
|
||||
except (ValueError, KeyError):
|
||||
self.set_state("Can't transform animation: bad or empty config (ratio in 'ANIMATION')", log_error=True)
|
||||
return
|
||||
self.transformed_frames = []
|
||||
self.transformed_frames = copy.deepcopy(self.original_frames)
|
||||
for frame in self.transformed_frames:
|
||||
frame.x = x_ratio*frame.x + x0
|
||||
|
||||
Reference in New Issue
Block a user