Skip to content

Commit 0cf6539

Browse files
committed
Fixing keyframe rescale issue after an export is completed (we were scaling all keyframes twice on accident)
1 parent 67d6a76 commit 0cf6539

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/windows/export.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,6 @@ def accept(self):
953953
# Return scale mode to lower quality scaling (for faster previews)
954954
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
955955

956-
# Return keyframes to preview scaling
957-
if self.keyframes_rescaled:
958-
app.project.rescale_keyframes(self.original_fps_factor)
959-
960956
# Handle end of export (for non-canceled exports)
961957
if self.s.get("show_finished_window") and self.exporting:
962958
# Hide cancel and export buttons
@@ -980,6 +976,8 @@ def accept(self):
980976

981977
def reject(self):
982978
# Re-set OMP thread enabled flag
979+
# NOTE: This is always called when closing the export modal, and thus
980+
# the keyframes are always scaled back to the original FPS if needed.
983981
if self.s.get("omp_threads_enabled"):
984982
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
985983
else:

0 commit comments

Comments
 (0)