Have TracedPath always update to the stroke configuration passed in

This commit is contained in:
Grant Sanderson 2024-12-26 10:29:33 -07:00
parent 273929fa53
commit 47815e5e73

View file

@ -112,7 +112,7 @@ class TracedPath(VMobject):
self.time: float = 0 self.time: float = 0
self.traced_points: list[np.ndarray] = [] self.traced_points: list[np.ndarray] = []
self.add_updater(lambda m, dt: m.update_path(dt)) self.add_updater(lambda m, dt: m.update_path(dt))
self.set_stroke(stroke_color, stroke_width) self.always.set_stroke(stroke_color, stroke_width)
def update_path(self, dt: float) -> Self: def update_path(self, dt: float) -> Self:
if dt == 0: if dt == 0: