From a08e32be9456e938fa25b51304e783c5abdfb512 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 16 Jan 2018 22:38:00 -0800 Subject: [PATCH] Tiny changes to mobject.py --- mobject/mobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobject/mobject.py b/mobject/mobject.py index e1942ddf..487e2ca3 100644 --- a/mobject/mobject.py +++ b/mobject/mobject.py @@ -285,13 +285,13 @@ class Mobject(object): ) else: target_point = mobject_or_point - if submobject_to_align: + if submobject_to_align is not None: aligner = submobject_to_align elif index_of_submobject_to_align is not None: aligner = self[index_of_submobject_to_align] else: aligner = self - point_to_align = aligner.get_critical_point(aligned_edge-direction) + point_to_align = aligner.get_critical_point(aligned_edge - direction) self.shift(target_point - point_to_align + buff*direction) return self