Skip to content

Commit

Permalink
Merge pull request #1598 from Azmoria/Beta-Fix---should-be-pc.image-n…
Browse files Browse the repository at this point in the history
…ot-pc.imgsrc

Beta Fix - should be pc.image not pc.imgsrc
  • Loading branch information
Azmoria authored Oct 9, 2023
2 parents 9f973b8 + afdf97c commit 6d7f3e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CoreFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ const debounce_pc_token_update = mydebounce(() => {
token.options = {
...token.options,
...pc,
imgsrc: (token.options.alternativeImages?.length == 0) ? pc.imgsrc : currentImage,
imgsrc: (token.options.alternativeImages?.length == 0) ? pc.image : currentImage,
id: pc.sheet // pc.id is DDB characterId, but we use the sheet as an id for tokens
};
token.place_sync_persist(); // not sure if this is overkill
Expand All @@ -540,7 +540,7 @@ const debounce_pc_token_update = mydebounce(() => {
token.options = {
...token.options,
...pc,
imgsrc: (token.options.alternativeImages?.length == 0) ? pc.imgsrc : currentImage,
imgsrc: (token.options.alternativeImages?.length == 0) ? pc.image : currentImage,
id: pc.sheet // pc.id is DDB characterId, but we use the sheet as an id for tokens
};
}
Expand Down

0 comments on commit 6d7f3e3

Please sign in to comment.