bugfixes
This commit is contained in:
@@ -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']
|
||||
)
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,)
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user