Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add missing () in the files reported in issue #2389 (manim/manim/mobject/types/vectorized_mobject.py and opengl_vectorized_mobject.py) (#2438) (#2438)

Lucas Ricci6e1ad57e45c1
diff --git a/manim/mobject/types/opengl_vectorized_mobject.py b/manim/mobject/types/opengl_vectorized_mobject.py
index 87972ab25..a88929bcc 100644
--- a/manim/mobject/types/opengl_vectorized_mobject.py
+++ b/manim/mobject/types/opengl_vectorized_mobject.py
@@ -671,7 +671,7 @@ class OpenGLVMobject(OpenGLMobject):
class ChangeOfDirection(Scene):
def construct(self):
ccw = RegularPolygon(5)
- ccw.shift(LEFT).rotate
+ ccw.shift(LEFT)
cw = RegularPolygon(5)
cw.shift(RIGHT).reverse_direction()
diff --git a/manim/mobject/types/vectorized_mobject.py b/manim/mobject/types/vectorized_mobject.py
index 2e8482605..2f1d34a39 100644
--- a/manim/mobject/types/vectorized_mobject.py
+++ b/manim/mobject/types/vectorized_mobject.py
@@ -1687,7 +1687,7 @@ class VMobject(Mobject):
class ChangeOfDirection(Scene):
def construct(self):
ccw = RegularPolygon(5)
- ccw.shift(LEFT).rotate
+ ccw.shift(LEFT)
cw = RegularPolygon(5)
cw.shift(RIGHT).reverse_direction()