From 2013ccf627c35fa25a8abc072c0e8d6169b00abb Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 26 Sep 2025 18:53:10 +0200 Subject: [PATCH] Remove logic for future template management in VideoEditor This commit eliminates the code that removes templates starting after the current frame, streamlining the template handling process. The changes enhance clarity and efficiency in template management during video editing sessions. Debug messages related to template removal have also been removed to reflect this update. --- croppa/main.py | 6 ------ 1 file changed, 6 deletions(-) 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(),