mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix exporting images with # in path
This commit is contained in:
parent
d23416ce6f
commit
807268b1ce
@ -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++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user