mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Tiny changes to mobject.py
This commit is contained in:
parent
7a63de41a7
commit
a08e32be94
1 changed files with 2 additions and 2 deletions
|
@ -285,13 +285,13 @@ class Mobject(object):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
target_point = mobject_or_point
|
target_point = mobject_or_point
|
||||||
if submobject_to_align:
|
if submobject_to_align is not None:
|
||||||
aligner = submobject_to_align
|
aligner = submobject_to_align
|
||||||
elif index_of_submobject_to_align is not None:
|
elif index_of_submobject_to_align is not None:
|
||||||
aligner = self[index_of_submobject_to_align]
|
aligner = self[index_of_submobject_to_align]
|
||||||
else:
|
else:
|
||||||
aligner = self
|
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)
|
self.shift(target_point - point_to_align + buff*direction)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue