Added token width and height for new and default tokens

This commit is contained in:
Mitchell McCaffrey 2020-10-22 16:09:27 +11:00
parent 75c855331a
commit dddfb3d498
2 changed files with 4 additions and 0 deletions

View File

@ -109,6 +109,8 @@ function SelectTokensModal({ isOpen, onRequestClose }) {
category: "character", category: "character",
hideInSidebar: false, hideInSidebar: false,
group: "", group: "",
width: image.width,
height: image.height,
}); });
setImageLoading(false); setImageLoading(false);
resolve(); resolve();

View File

@ -87,6 +87,8 @@ export const tokens = Object.keys(tokenSources).map((key) => ({
defaultSize: getDefaultTokenSize(key), defaultSize: getDefaultTokenSize(key),
category: "character", category: "character",
hideInSidebar: false, hideInSidebar: false,
width: 256,
height: 256,
})); }));
export const unknownSource = unknown; export const unknownSource = unknown;