Merge pull request #1386 from cigar666/patch-2

Update changing.py
This commit is contained in:
鹤翔万里 2021-02-13 21:15:24 +08:00 committed by GitHub
commit b7e2abb801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ class TracedPath(VMobject):
self.get_points()[-1] = new_point
# Second to last point
nppcc = self.n_points_per_cubic_curve
nppcc = self.n_points_per_curve
dist = get_norm(new_point - self.get_points()[-nppcc])
if dist >= self.min_distance_to_new_point:
self.add_line_to(new_point)