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.
This commit is contained in:
@@ -2410,12 +2410,6 @@ class VideoEditor:
|
|||||||
# End the current template at the previous frame
|
# End the current template at the previous frame
|
||||||
self.templates[self.current_template_id]['end_frame'] = self.current_frame - 1
|
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}")
|
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] = {
|
self.templates[template_id] = {
|
||||||
'template': template.copy(),
|
'template': template.copy(),
|
||||||
|
Reference in New Issue
Block a user