Skip to content

Commit

Permalink
🐛 Fix "}" at the end of some texture files' names
Browse files Browse the repository at this point in the history
  • Loading branch information
CosmoMyzrailGorynych committed Jan 19, 2021
1 parent 7b740f2 commit f2b531f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_requires/resources/textures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const importImageToTexture = async (src, name) => {
const id = generateGUID();
let dest;
if (src instanceof Buffer) {
dest = path.join(global.projdir, 'img', `i${id}.png}`);
dest = path.join(global.projdir, 'img', `i${id}.png`);
await fs.writeFile(dest, src);
} else {
dest = path.join(global.projdir, 'img', `i${id}${path.extname(src)}`);
Expand Down

0 comments on commit f2b531f

Please sign in to comment.