Fix shared reference issue in traced_points initialization (#2426)

This commit is contained in:
Shavez
2026-03-26 20:26:44 +05:30
committed by GitHub
parent e14177036c
commit c5e23d9365

View File

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