Fix uploaded image not forcing re-render (#3115)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-03-17 17:13:05 -07:00
committed by Chenlei Hu
parent 7705a09760
commit 07ea8712e3

View File

@@ -95,6 +95,7 @@ export const useImageUploadWidget = () => {
// Add our own callback to the combo widget to render an image when it changes
fileComboWidget.callback = function () {
nodeOutputStore.setNodeOutputs(node, fileComboWidget.value)
node.graph?.setDirtyCanvas(true)
}
// On load if we have a value then render the image