mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:47:45 +00:00
Fixed bug with Bubble
This commit is contained in:
parent
48f38b8940
commit
f3048eb574
1 changed files with 2 additions and 2 deletions
|
|
@ -436,7 +436,7 @@ class Bubble(SVGMobject):
|
|||
self.stretch_to_fit_height(self.height)
|
||||
self.stretch_to_fit_width(self.width)
|
||||
if self.direction[0] > 0:
|
||||
Mobject.flip(self)
|
||||
self.flip()
|
||||
self.direction_was_specified = ("direction" in kwargs)
|
||||
self.content = Mobject()
|
||||
|
||||
|
|
@ -457,7 +457,7 @@ class Bubble(SVGMobject):
|
|||
|
||||
def flip(self, axis=UP):
|
||||
Mobject.flip(self, axis=axis)
|
||||
if abs(axis[0]) > 0:
|
||||
if abs(axis[1]) > 0:
|
||||
self.direction = -np.array(self.direction)
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue