mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
Tiny line swap
This commit is contained in:
parent
312e9c460b
commit
ff53c57d9d
1 changed files with 4 additions and 1 deletions
|
@ -656,7 +656,8 @@ class VMobject(Mobject):
|
||||||
# Alignment
|
# Alignment
|
||||||
def align_points(self, vmobject):
|
def align_points(self, vmobject):
|
||||||
self.align_rgbas(vmobject)
|
self.align_rgbas(vmobject)
|
||||||
nppcc = self.n_points_per_cubic_curve
|
if self.get_num_points() == vmobject.get_num_points():
|
||||||
|
return
|
||||||
|
|
||||||
for mob in self, vmobject:
|
for mob in self, vmobject:
|
||||||
# If there are no points, add one to
|
# If there are no points, add one to
|
||||||
|
@ -676,6 +677,8 @@ class VMobject(Mobject):
|
||||||
new_path1 = np.zeros((0, self.dim))
|
new_path1 = np.zeros((0, self.dim))
|
||||||
new_path2 = np.zeros((0, self.dim))
|
new_path2 = np.zeros((0, self.dim))
|
||||||
|
|
||||||
|
nppcc = self.n_points_per_cubic_curve
|
||||||
|
|
||||||
def get_nth_subpath(path_list, n):
|
def get_nth_subpath(path_list, n):
|
||||||
if n >= len(path_list):
|
if n >= len(path_list):
|
||||||
# Create a null path at the very end
|
# Create a null path at the very end
|
||||||
|
|
Loading…
Add table
Reference in a new issue