Tiny line swap

This commit is contained in:
Grant Sanderson 2019-02-11 22:25:02 -08:00
parent 312e9c460b
commit ff53c57d9d

View file

@ -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