Skip to content

Commit

Permalink
Fix exporting images with # in path
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Aug 30, 2023
1 parent d23416c commit 807268b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/texturing/textures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit 807268b

Please sign in to comment.