fix: crop keyframe in lock mode updates video overlay and preview lines
The lock-mode path was only updating the crop bar but not the video overlay or random overlays. Now sets _crop_center and calls the appropriate overlay update. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2436,9 +2436,12 @@ class MainWindow(QMainWindow):
|
|||||||
self._crop_keyframes.sort()
|
self._crop_keyframes.sort()
|
||||||
self._timeline.set_crop_keyframes(self._crop_keyframes)
|
self._timeline.set_crop_keyframes(self._crop_keyframes)
|
||||||
_log(f"Crop keyframe: t={play_t:.2f}s center={frac:.3f} ({len(self._crop_keyframes)} total)")
|
_log(f"Crop keyframe: t={play_t:.2f}s center={frac:.3f} ({len(self._crop_keyframes)} total)")
|
||||||
|
self._crop_center = frac
|
||||||
self._crop_bar.set_crop_center(frac)
|
self._crop_bar.set_crop_center(frac)
|
||||||
if ratio != "Off":
|
if ratio != "Off":
|
||||||
self._mpv.set_crop_overlay(_RATIOS[ratio], frac)
|
self._mpv.set_crop_overlay(_RATIOS[ratio], frac)
|
||||||
|
else:
|
||||||
|
self._update_rand_overlays()
|
||||||
self._update_preview_crop()
|
self._update_preview_crop()
|
||||||
return
|
return
|
||||||
self._crop_center = frac
|
self._crop_center = frac
|
||||||
|
|||||||
Reference in New Issue
Block a user