mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
fix: use actual filepath of mask editor images
This commit is contained in:
@@ -1223,7 +1223,7 @@ class MaskEditorDialog extends ComfyDialog {
|
||||
// Create and set new image
|
||||
const newImage = new Image()
|
||||
newImage.crossOrigin = 'anonymous'
|
||||
newImage.src = mkFileUrl({ ref: filepath, preview: true })
|
||||
newImage.src = mkFileUrl({ ref: actualFilepath, preview: true })
|
||||
ComfyApp.clipspace.imgs[paintedIndex] = newImage
|
||||
|
||||
// Update images array - create if it doesn't exist
|
||||
@@ -1276,7 +1276,7 @@ class MaskEditorDialog extends ComfyDialog {
|
||||
// Create and set new image
|
||||
const newImage = new Image()
|
||||
newImage.crossOrigin = 'anonymous'
|
||||
newImage.src = mkFileUrl({ ref: filepath, preview: true })
|
||||
newImage.src = mkFileUrl({ ref: actualFilepath, preview: true })
|
||||
ComfyApp.clipspace.imgs[indexToSaveTo] = newImage
|
||||
|
||||
// Update images array - create if it doesn't exist
|
||||
|
||||
Reference in New Issue
Block a user