Refresh shader data at the start of an animation

This commit is contained in:
Grant Sanderson 2023-01-10 16:40:31 -08:00
parent 470e7bee1e
commit bfaf81c6b3

View file

@ -65,6 +65,7 @@ class Animation(object):
self.rate_func = squish_rate_func(
self.rate_func, start / self.run_time, end / self.run_time,
)
self.mobject.refresh_shader_data()
self.mobject.set_animating_status(True)
self.starting_mobject = self.create_starting_mobject()
if self.suspend_mobject_updating: