mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Avoid using set_points in Rotation
This commit is contained in:
parent
0d433b075e
commit
f5455bb554
1 changed files with 6 additions and 2 deletions
|
@ -40,8 +40,12 @@ class Rotating(Animation):
|
||||||
)
|
)
|
||||||
|
|
||||||
def interpolate_mobject(self, alpha: float) -> None:
|
def interpolate_mobject(self, alpha: float) -> None:
|
||||||
for sm1, sm2 in self.get_all_families_zipped():
|
pairs = zip(
|
||||||
sm1.set_points(sm2.get_points())
|
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.mobject.rotate(
|
||||||
self.rate_func(alpha) * self.angle,
|
self.rate_func(alpha) * self.angle,
|
||||||
axis=self.axis,
|
axis=self.axis,
|
||||||
|
|
Loading…
Add table
Reference in a new issue