2.0beta-5

This commit is contained in:
zombieyang
2025-08-10 15:28:56 +08:00
parent 21aa8b6e6c
commit 2fdc67b9c5
3 changed files with 6607 additions and 5686 deletions
+6601 -5684
View File
File diff suppressed because one or more lines are too long
+6 -2
View File
@@ -285,7 +285,8 @@ export default function (sdppp, version = 1) {
widgets: [{
value: {
url: node.widgets[0].value,
source: node.properties.source || 'comfyUI',
source: node.properties.source || 'remote',
auto: node.properties.auto || false,
thumbnail: location.protocol + '//' + location.host + '/api/view?type=input&filename=' + rest.join('/') + '&subfolder=' + subfolder
},
outputType: "images",
@@ -310,6 +311,7 @@ export default function (sdppp, version = 1) {
if (version == 2) {
node.widgets[widgetIndex].value = value.url;
node.setProperty('source', value.source);
node.setProperty('auto', value.auto);
return true;
}
}
@@ -328,7 +330,8 @@ export default function (sdppp, version = 1) {
widgets: [{
value: {
url: node.widgets[0].value,
source: node.properties.source || 'comfyUI',
source: node.properties.source || 'remote',
auto: node.properties.auto || false,
thumbnail: location.protocol + '//' + location.host + '/api/view?type=input&filename=' + rest.join('/') + '&subfolder=' + subfolder
},
outputType: "masks",
@@ -353,6 +356,7 @@ export default function (sdppp, version = 1) {
if (version == 2) {
node.widgets[widgetIndex].value = value.url;
node.setProperty('source', value.source);
node.setProperty('auto', value.auto);
return true;
}
}