Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

typo

Ben Hambrecht1e91fb10a5b9
diff --git a/mobject/svg/drawings.py b/mobject/svg/drawings.py
index e22ec5291..e2c753fb9 100644
--- a/mobject/svg/drawings.py
+++ b/mobject/svg/drawings.py
@@ -458,9 +458,9 @@ class Bubble(SVGMobject):
def pin_to(self, mobject):
mob_center = mobject.get_center()
- want_to_filp = np.sign(mob_center[0]) != np.sign(self.direction[0])
+ want_to_flip = np.sign(mob_center[0]) != np.sign(self.direction[0])
can_flip = not self.direction_was_specified
- if want_to_filp and can_flip:
+ if want_to_flip and can_flip:
self.flip()
boundary_point = mobject.get_critical_point(UP - self.direction)
vector_from_center = 1.0 * (boundary_point - mob_center)