Add cube texture to transformation tool

This commit is contained in:
Misode
2023-02-09 22:51:58 +01:00
parent 98915fe089
commit b47841870d
3 changed files with 64 additions and 45 deletions

View File

@@ -179,7 +179,7 @@ export async function fetchResources(versionId: VersionId) {
}
}
async function loadImage(src: string) {
export async function loadImage(src: string) {
return new Promise<HTMLImageElement>(res => {
const image = new Image()
image.onload = () => res(image)