Repository navigation
feat(footage): relink footage that moved - #1106
Conversation
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)
|
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…" ( If you are not on our Discord yet, please join us: https://discord.gg/artcraft |
…issing Footage… (#1106) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged. Thank you for the contribution, @eliasx45! It's on 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 |
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.missinglists missing items.marking the project modified.
The folder search stays with upstream's
file.relinkFootage; this lives inrelink_moved.rsnextto
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.rsand the enginerelink/footage_checktests; written with thechange, not re-run on this branch.
rustfmt --checkandcargo checkon the affected crates on current upstreammain.