Skip to content

Commit

Permalink
Merge pull request #2832 from Azmoria/Fix---issue-with-copy/pasting-a…
Browse files Browse the repository at this point in the history
…udio-tokens,-or-duplicating-scenes-with-audio-tokens-

Internal - missed commit
  • Loading branch information
Azmoria authored Jan 15, 2025
2 parents 4b257dd + eea79ce commit 3820e41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Token.js
Original file line number Diff line number Diff line change
Expand Up @@ -4875,8 +4875,10 @@ function paste_selected_tokens(x, y) {
let options = $.extend(true, {}, token.options);
let newId = token.isPlayer() ? id : uuid();
options.id = newId;
if(options.audioChannel != undefined)
if(options.audioChannel != undefined){
options.audioChannel.token = newId;
options.audioChannel.audioId = uuid();
}
// TODO: figure out the location under the cursor and paste there instead of doing center of view
options.init = token.isPlayer() ? options.init : undefined;
options.ct_show = token.isPlayer() ? options.ct_show : undefined;
Expand Down

0 comments on commit 3820e41

Please sign in to comment.