mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Avoid using set_points in Rotation
This commit is contained in:
@ -40,8 +40,12 @@ class Rotating(Animation):
|
||||
)
|
||||
|
||||
def interpolate_mobject(self, alpha: float) -> None:
|
||||
for sm1, sm2 in self.get_all_families_zipped():
|
||||
sm1.set_points(sm2.get_points())
|
||||
pairs = zip(
|
||||
self.mobject.family_members_with_points(),
|
||||
self.starting_mobject.family_members_with_points(),
|
||||
)
|
||||
for sm1, sm2 in pairs:
|
||||
sm1.data["points"][:] = sm2.data["points"]
|
||||
self.mobject.rotate(
|
||||
self.rate_func(alpha) * self.angle,
|
||||
axis=self.axis,
|
||||
|
Reference in New Issue
Block a user