diff --git a/mobject/svg/drawings.py b/mobject/svg/drawings.py index 71ccc102..bd8f5a94 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.py index 4f789606..325411ac 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_width self.background_stroke_width = vmobject.background_stroke_width diff --git a/old_projects/dandelin.py b/old_projects/dandelin.py index e037e1d4..29d46fdd 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 Orbiting from 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)