mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Removed confusing about_point conditionals in Rotating
This commit is contained in:
parent
6e1dd54aeb
commit
8589515e82
1 changed files with 2 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue