This commit is contained in:
zombieyang
2024-10-19 13:04:55 +08:00
parent 45dfecd7a0
commit 94655bbb8e
7 changed files with 12 additions and 14 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ def registerSocketEvents(sdppp, sio):
await ProtocolPhotoshop.send_images(backendInstance,
document_identify=document['identify'],
layer_identifies=payload['layer_identifies'],
bounds_identify=payload['bounds_identify'],
bounds_identifies=payload['bounds_identifies'],
image_urls=payload['image_urls']
)
+3
View File
@@ -26,6 +26,9 @@ def check_linked_in_prompt(prompt, unique_id, name):
def sdppp_get_prompt_item_from_list(l, index):
if not isinstance(l, list):
return l
if len(l) <= index:
index = 0
if len(l) == 0:
return ''
elif len(l) == 1:
+1 -1
View File
@@ -249,7 +249,7 @@ def define_comfyui_nodes_legacy(sdppp):
document_identify=document['identify'],
image_blobs=[p['image_blob'] for p in params],
layer_identifies=[p['layer_identify'] for p in params],
bounds_identify=[p['bound_identify'] for p in params]
bounds_identifies=[p['bound_identify'] for p in params]
), True)
return (None,)
+2 -2
View File
@@ -21,11 +21,11 @@ class ProtocolPhotoshop:
return result
@classmethod
async def send_images(cls, backend_instance, document_identify, layer_identifies, bounds_identify, image_urls=[], image_blobs=[]):
async def send_images(cls, backend_instance, document_identify, layer_identifies, bounds_identifies, image_urls=[], image_blobs=[]):
result = await protocol_call(backend_instance, 's_send_images', data={
'document_identify': document_identify,
'layer_identifies': layer_identifies,
'bounds_identify': bounds_identify,
'bounds_identifies': bounds_identifies,
'image_urls': image_urls,
'image_blobs': image_blobs
})