Skip to content

Commit 5e97614

Browse files
committed
fix: use actual filepath of mask editor images
1 parent 07ce463 commit 5e97614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extensions/core/maskeditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ class MaskEditorDialog extends ComfyDialog {
12231223
// Create and set new image
12241224
const newImage = new Image()
12251225
newImage.crossOrigin = 'anonymous'
1226-
newImage.src = mkFileUrl({ ref: filepath, preview: true })
1226+
newImage.src = mkFileUrl({ ref: actualFilepath, preview: true })
12271227
ComfyApp.clipspace.imgs[paintedIndex] = newImage
12281228

12291229
// Update images array - create if it doesn't exist
@@ -1276,7 +1276,7 @@ class MaskEditorDialog extends ComfyDialog {
12761276
// Create and set new image
12771277
const newImage = new Image()
12781278
newImage.crossOrigin = 'anonymous'
1279-
newImage.src = mkFileUrl({ ref: filepath, preview: true })
1279+
newImage.src = mkFileUrl({ ref: actualFilepath, preview: true })
12801280
ComfyApp.clipspace.imgs[indexToSaveTo] = newImage
12811281

12821282
// Update images array - create if it doesn't exist

0 commit comments

Comments
 (0)