Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fixed GrowFromPoint

Grant Sanderson9c9104dcfab4
diff --git a/manimlib/animation/creation.py b/manimlib/animation/creation.py
index 42f4f92f8..dd058c05b 100644
--- a/manimlib/animation/creation.py
+++ b/manimlib/animation/creation.py
@@ -246,11 +246,10 @@ class GrowFromPoint(Transform):
def __init__(self, mobject, point, **kwargs):
digest_config(self, kwargs)
target = mobject.copy()
- point_mob = VectorizedPoint(point)
+ mobject.scale(0)
+ mobject.move_to(point)
if self.point_color:
- point_mob.set_color(self.point_color)
- mobject.replace(point_mob)
- mobject.set_color(point_mob.get_color())
+ mobject.set_color(self.point_color)
Transform.__init__(self, mobject, target, **kwargs)