mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-05 18:18:49 +00:00
* Fix #2823: Propagate boxes SAM 2 around the matte shown on the stroked frame The tracker's box prompt came from the classic graph cut of the strokes, which can leak into the background; SAM 2 then filled the whole box. Build the box from the model's own matte (segment_with), the one shown before Propagate. segment_with falls back to the classic cut when the model can't segment, so non-model paths are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix #2823: box a lone object around the matte shown on correction frames too A correction frame shows a matte propagated from the frame before, not a fresh model cut, so the tracker's box came from a different matte than the one on screen. With one object the box now comes from Chain::ensure, the matte shown on that frame. Several objects share one shown matte, so each keeps the model's cut of its own strokes. Cancelling while the shown matte is computed stops instead of falling back, and the prompt frame is read only when needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>