A community-maintained Python framework for creating mathematical animations.
Fixed bubble sort bug
Grant Sandersonfb08fc04011d
diff --git a/mobject/svg/drawings.py b/mobject/svg/drawings.pyindex 71ccc1025..bd8f5a943 100644--- a/mobject/svg/drawings.py+++ b/mobject/svg/drawings.py@@ -526,7 +526,7 @@ class ThoughtBubble(Bubble):def __init__(self, **kwargs):Bubble.__init__(self, **kwargs)self.submobjects.sort(- lambda m1, m2: int((m1.get_bottom() - m2.get_bottom())[1])+ key=lambda m: m.get_bottom()[1])def make_green_screen(self):diff --git a/mobject/types/vectorized_mobject.py b/mobject/types/vectorized_mobject.pyindex 4f7896063..325411acb 100644--- a/mobject/types/vectorized_mobject.py+++ b/mobject/types/vectorized_mobject.py@@ -147,7 +147,7 @@ class VMobject(Mobject):def match_style(self, vmobject):for a_name in ["fill_rgbas", "stroke_rgbas", "background_stroke_rgbas"]:- setattr(self, np.array(get_attr(vmobject, a_name)))+ setattr(self, a_name, np.array(getattr(vmobject, a_name)))self.stroke_width = vmobject.stroke_widthself.background_stroke_width = vmobject.background_stroke_widthdiff --git a/old_projects/dandelin.py b/old_projects/dandelin.pyindex e037e1d46..29d46fdd3 100644--- a/old_projects/dandelin.py+++ b/old_projects/dandelin.py@@ -1,11 +1,9 @@-from big_ol_pile_of_manim_imports import *from old_projects.lost_lecture import Orbitingfrom old_projects.lost_lecture import ShowWord-class LogoGeneration(LogoGenerationTemplate):CONFIG = {"random_seed": 2,@@ -53,7 +51,7 @@ class ThinkingAboutAProof(PiCreatureScene):cloud.rotate(90 * DEGREES)cloud.set_height(FRAME_HEIGHT - 0.5)cloud.stretch(2.8, 0)- cloud.next_to(bubble[0], RIGHT)+ cloud.next_to(bubble[2], RIGHT)cloud.to_edge(UP, buff=0.25)bubble[1].shift(0.25 * UL)