remove interpolation of new track

This commit is contained in:
q
2025-09-04 15:10:17 +03:00
parent 793cc66b53
commit ded05acfb3

View File

@@ -842,6 +842,7 @@ class World:
if point_index is None: if point_index is None:
point_index = self.point_index point_index = self.point_index
if not point_index in self.points: if not point_index in self.points:
self.points_interpolation_required[point_index] = []
return return
try: try:
@@ -865,6 +866,10 @@ class World:
new_points = {k: v for k, v in self.points_interpolated[point_index].items()} new_points = {k: v for k, v in self.points_interpolated[point_index].items()}
if len(self.points[point_index]) == 0: # no points yet
self.points_interpolation_required[point_index] = []
return
if len(self.points[point_index]) == 1: # only one point added if len(self.points[point_index]) == 1: # only one point added
key = list(self.points[point_index].keys())[0] key = list(self.points[point_index].keys())[0]
vals = self.points[point_index][key] vals = self.points[point_index][key]
@@ -1550,7 +1555,7 @@ class World:
self.point_click = 0 self.point_click = 0
else: else:
self.point_index = chr(k2) self.point_index = chr(k2)
self.interpolate_set(refresh=True) self.interpolate_set(point_index=self.point_index, refresh=True)
elif k & 0xFF == ord("g"): # Go to elif k & 0xFF == ord("g"): # Go to
self.shadow_text( self.shadow_text(
frame_visu, frame_visu,