Fix exporting images with # in path

This commit is contained in:
JannisX11 2023-08-30 11:56:28 +02:00
parent d23416ce6f
commit 807268b1ce

View File

@ -1275,10 +1275,11 @@ class Texture {
if (isApp) { if (isApp) {
//overwrite path //overwrite path
let image;
if (scope.mode === 'link') { if (scope.mode === 'link') {
var image = nativeImage.createFromPath(scope.source.replace(/\?\d+$/, '')).toPNG() image = nativeImage.createFromPath(scope.path).toPNG()
} else { } else {
var image = nativeImage.createFromDataURL(scope.source).toPNG() image = nativeImage.createFromDataURL(scope.source).toPNG()
} }
tex_version++; tex_version++;