From 807268b1ce3442a1c3c381ad534ec9733344e26c Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Wed, 30 Aug 2023 11:56:28 +0200 Subject: [PATCH] Fix exporting images with # in path --- js/texturing/textures.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/texturing/textures.js b/js/texturing/textures.js index b54636133..927d7811c 100644 --- a/js/texturing/textures.js +++ b/js/texturing/textures.js @@ -1275,10 +1275,11 @@ class Texture { if (isApp) { //overwrite path + let image; if (scope.mode === 'link') { - var image = nativeImage.createFromPath(scope.source.replace(/\?\d+$/, '')).toPNG() + image = nativeImage.createFromPath(scope.path).toPNG() } else { - var image = nativeImage.createFromDataURL(scope.source).toPNG() + image = nativeImage.createFromDataURL(scope.source).toPNG() } tex_version++;