mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Allow Bubble to flip over any axis, which was unnecessarily restricted before
This commit is contained in:
parent
8ce13875a3
commit
2294cdea4f
1 changed files with 4 additions and 3 deletions
|
@ -455,9 +455,10 @@ class Bubble(SVGMobject):
|
|||
mover.shift(point - self.get_tip())
|
||||
return self
|
||||
|
||||
def flip(self):
|
||||
Mobject.flip(self)
|
||||
self.direction = -np.array(self.direction)
|
||||
def flip(self, axis=UP):
|
||||
Mobject.flip(self, axis=axis)
|
||||
if abs(axis[0]) > 0:
|
||||
self.direction = -np.array(self.direction)
|
||||
return self
|
||||
|
||||
def pin_to(self, mobject):
|
||||
|
|
Loading…
Add table
Reference in a new issue