Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bug fix for Bubble.pin_to

Grant Sanderson1ca26fcf1d99
diff --git a/manimlib/mobject/svg/drawings.py b/manimlib/mobject/svg/drawings.py
index d2a70b64f..7c97adb0a 100644
--- a/manimlib/mobject/svg/drawings.py
+++ b/manimlib/mobject/svg/drawings.py
@@ -446,7 +446,10 @@ class Bubble(SVGMobject):
return self.get_center() + factor * self.get_height() * UP
def move_tip_to(self, point):
- VGroup(self, self.content).shift(point - self.get_tip())
+ mover = VGroup(self)
+ if self.content is not None:
+ mover.add(self.content)
+ mover.shift(point - self.get_tip())
return self
def flip(self):