Allow Bubble to flip over any axis, which was unnecessarily restricted before

This commit is contained in:
Grant Sanderson 2019-06-19 16:08:14 -07:00
parent 8ce13875a3
commit 2294cdea4f

View file

@ -455,8 +455,9 @@ class Bubble(SVGMobject):
mover.shift(point - self.get_tip()) mover.shift(point - self.get_tip())
return self return self
def flip(self): def flip(self, axis=UP):
Mobject.flip(self) Mobject.flip(self, axis=axis)
if abs(axis[0]) > 0:
self.direction = -np.array(self.direction) self.direction = -np.array(self.direction)
return self return self