Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

Persist crop settings in saved projects

webadderall0199d5565631
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx
index 6c721d5f..fc3c3914 100644
--- a/src/components/video-editor/VideoEditor.tsx
+++ b/src/components/video-editor/VideoEditor.tsx
@@ -1194,8 +1194,7 @@ export default function VideoEditor() {
gifSizePreset: GifSizePreset;
}>,
) => {
- const { cropRegion: _cropRegion, ...persistedEditor } = editor;
- return persistedEditor;
+ return editor;
},
[],
);
@@ -1527,7 +1526,7 @@ export default function VideoEditor() {
setBorderRadius(normalizedEditor.borderRadius);
setPadding(normalizedEditor.padding);
setFrame(normalizedEditor.frame);
- setCropRegion(DEFAULT_CROP_REGION);
+ setCropRegion(normalizedEditor.cropRegion);
setWebcam(normalizedEditor.webcam);
setZoomRegions(normalizedEditor.zoomRegions);
setTrimRegions(normalizedEditor.trimRegions);