Skip to content

Commit

Permalink
Fixing bug when copying effects from 1 clip to another clip. We were …
Browse files Browse the repository at this point in the history
…copying the "id" from the first clip, instead of generating a new one.
  • Loading branch information
jonoomph committed Feb 15, 2024
1 parent 35729be commit 2e433db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/windows/views/webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,9 @@ def Copy_Triggered(self, action, clip_ids, tran_ids):
elif action == MENU_COPY_KEYFRAMES_VOLUME:
self.copy_clipboard[clip_id]['volume'] = clip.data['volume']
elif action == MENU_COPY_EFFECTS:
self.copy_clipboard[clip_id]['effects'] = clip.data['effects']
self.copy_clipboard[clip_id]['effects'] = [{k: (get_app().project.generate_id() if k == 'id' else v)
for k, v in effect.items()} for effect in clip.data['effects']]


# Loop through transition objects
for tran_id in tran_ids:
Expand Down

0 comments on commit 2e433db

Please sign in to comment.