Repository navigation
EffectOutputTracks copies clip IDs when duplicating - #7871
saintmatthieu merged 1 commit into
Conversation
There was a problem hiding this comment.
this makes me think that there are other places where duplicated track should also duplicate clip ids. I'm not opposed to have this merged, but what do you think about introduce this as an optional behavior to Duplicate?
There was a problem hiding this comment.
You find that this PR solves this ID problem only in the context of effects but that preserving clip IDs might be desired in other situations, too?
Where Duplicate() is called (I changed the name to something silly and fixed compilation to make sure I haven't missed any):
EffectOutputTracks: IDs must be copiedProjectCloudExtension::OnSyncStarted(): I think it doesn't matter?PendingTracks: outdated ;)- Undo/Redo: at the moment new IDs are given, and it seems to work (I don't know why)
- In
WaveTrack::ClearAndPaste: new IDs are given, which is correct Au3Interaction::duplicateTracks: new IDs are given, correct.
So for now at least it would seem that we're good?
Yes, in the future a situation may arise where we need to duplicate with equal IDs. I'm not sure how to change the Duplicate API, though, as this is a Track API, and other track types may not have clips (e.g. label tracks).
There was a problem hiding this comment.
Undo/Redo: at the moment new IDs are given, and it seems to work (I don't know why)
Now I wonder why applying an effect breaks the project while undo doesn't. If I understand correctly, undo does the same thing as an effect does: it creates a new track and replaces the original track, including all of its clips.
There was a problem hiding this comment.
Right. Maybe I was too quick to come to the conclusion that undo/redo was working properly. There are bug tickets related to undo/redo: #7845, #7839, #7838, #7802, and maybe others.
I'll take a look tomorrow before merging : if it's also related, maybe a more generic solution would indeed be preferable.
There was a problem hiding this comment.
All things considered, I'll move this to QA already: having this merged would unblock the other ticket I'm working on.
70dd7ae to
b506d3f
Compare
Resolves: #7799
Addresses the case of EffectOutputTracks, where, when duplicating the original track, the clip IDs should match the original.
Problem discussed internally here.
Recommended: