From ff53c57d9d66bdcc71b11061343000dac6c98ef1 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 11 Feb 2019 22:25:02 -0800 Subject: [PATCH] Tiny line swap --- manimlib/mobject/types/vectorized_mobject.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 38ea4916..bd5bc000 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -656,7 +656,8 @@ class VMobject(Mobject): # Alignment def align_points(self, 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: # If there are no points, add one to @@ -676,6 +677,8 @@ class VMobject(Mobject): new_path1 = 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): if n >= len(path_list): # Create a null path at the very end