mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fixed GrowFromPoint
This commit is contained in:
parent
748ca4e0f1
commit
9c9104dcfa
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue