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