Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Removed confusing about_point conditionals in Rotating

Grant Sanderson8589515e829e
diff --git a/animation/rotation.py b/animation/rotation.py
index 6b92e5b64..044cba64d 100644
--- a/animation/rotation.py
+++ b/animation/rotation.py
@@ -12,7 +12,7 @@ from utils.config_ops import digest_config
class Rotating(Animation):
CONFIG = {
"axis": OUT,
- "radians": 2 * np.pi,
+ "radians": TAU,
"run_time": 5,
"rate_func": None,
"in_place": True,
@@ -25,10 +25,7 @@ class Rotating(Animation):
def update_mobject(self, alpha):
Animation.update_mobject(self, alpha)
- about_point = None
- if self.about_point is not None:
- self.about_point = about_point
- elif self.in_place: # This is superseeded
+ if self.in_place and self.about_point is None:
self.about_point = self.mobject.get_center()
self.mobject.rotate(
alpha * self.radians,