Skip to content

feat(footage): relink footage that moved - #1106

Merged
h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
eliasx45:upstream/relink-footage
Oct 13, 2026
Merged

h-a-n-a-s-h-i merged 1 commit into
storytold:mainfrom
eliasx45:upstream/relink-footage

Conversation

@eliasx45

Copy link
Copy Markdown
Contributor

What

Relink footage that moved, as in After Effects:

  • footage.relink {item, path} relinks one item and every other missing item that moved with it
    (same relative layout), as one undo step; Replace Footage on a missing item does the same.
  • footage.missing lists missing items.
  • The footage check after open finds files that moved along with the project's folder, without
    marking the project modified.
  • Paths compare by parts, so Windows and macOS projects relink either way.

The folder search stays with upstream's file.relinkFootage; this lives in relink_moved.rs next
to relink.rs.

Why

Moving a project folder (or a footage folder) left every item missing, to be relinked one by one.
Split out of #858 as asked.

How tested

  • crates/host/tests/relink.rs and the engine relink / footage_check tests; written with the
    change, not re-run on this branch.
  • rustfmt --check and cargo check on the affected crates on current upstream main.

footage.relink {item, path} relinks one item and every other missing item that moved with it (one undo
step); Replace Footage on a missing item does the same, as in After Effects. File > Dependencies >
Relink Missing Footage in Folder... (footage.relinkFolder) finds missing files by name in a folder;
footage.missing lists them. The footage check after open finds files that moved along with the
project's folder, without marking the project modified. Paths compare by parts, so Windows and macOS
projects relink either way.

Checks: engine relink:: / footage_check:: (13 passed with replay::), host relink:: (1 passed),
clippy -D warnings (engine, host, ui-egui, script, cli, xtask). Not run: ui-egui i18n tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEytG1Qum4TJrMTLKjgwDa

Upstream port: the folder search (footage.relinkFolder) is left out, since upstream's file.relinkFootage already scans a folder; the module is relink_moved.rs next to upstream's relink.rs.

(cherry picked from commit ea79235)

(cherry picked from commit d15e853a720304c1032e21974d84e1501c6edfc3)
(cherry picked from commit 0b8a328)

(cherry picked from commit 9d85bfd)
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Thank you for this, @eliasx45!

One fix before it lands: the new missing-footage toast points to "File ▸ Dependencies ▸ Relink Missing Footage in Folder…", which doesn't exist. The menu item is "Relink Missing Footage…" (file.relinkFootage). Could you fix the text and confirm the tests pass on this branch (cargo xtask ci)?

If you are not on our Discord yet, please join us: https://discord.gg/artcraft

h-a-n-a-s-h-i pushed a commit that referenced this pull request Oct 13, 2026
…issing Footage… (#1106)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@h-a-n-a-s-h-i
h-a-n-a-s-h-i merged commit 7a92136 into storytold:main Oct 13, 2026
@echelon

echelon commented Oct 13, 2026

Copy link
Copy Markdown
Member

Merged. Thank you for the contribution, @eliasx45! It's on main after the engine, host and UI test suites and clippy passed.

A small follow-up landed with it: the missing-footage toast pointed to "Relink Missing Footage in Folder…", which doesn't exist, so it now names File ▸ Dependencies ▸ Relink Missing Footage….

If you are not on our Discord yet, please join us: https://discord.gg/artcraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants