mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Fix shared reference issue in traced_points initialization (#2426)
This commit is contained in:
@@ -173,4 +173,4 @@ class TracingTail(TracedPath):
|
||||
)
|
||||
curr_point = self.traced_point_func()
|
||||
n_points = int(self.time_traced / self.time_per_anchor)
|
||||
self.traced_points: list[np.ndarray] = n_points * [curr_point]
|
||||
self.traced_points: list[np.ndarray] = [curr_point.copy() for _ in range(n_points)]
|
||||
|
||||
Reference in New Issue
Block a user