diff --git a/croppa/main.py b/croppa/main.py index 6f5a426..5e0ae60 100644 --- a/croppa/main.py +++ b/croppa/main.py @@ -2410,12 +2410,6 @@ class VideoEditor: # End the current template at the previous frame self.templates[self.current_template_id]['end_frame'] = self.current_frame - 1 print(f"DEBUG: Ended current template {self.current_template_id} at frame {self.current_frame - 1}") - - # Remove any templates that start after the current frame (they shouldn't exist yet) - for template_id, template_data in list(self.templates.items()): - if template_data['start_frame'] > self.current_frame: - del self.templates[template_id] - print(f"DEBUG: Removed future template {template_id} that started at frame {template_data['start_frame']}") self.templates[template_id] = { 'template': template.copy(),