diff --git a/sdppp_python/comfy/nodes_legacy.py b/sdppp_python/comfy/nodes_legacy.py index 90a7166..ef36e08 100644 --- a/sdppp_python/comfy/nodes_legacy.py +++ b/sdppp_python/comfy/nodes_legacy.py @@ -240,8 +240,7 @@ def define_comfyui_nodes_legacy(sdppp): 'image_blob': blob }) - start_time = time.time() - call_async_func_in_server_thread(ProtocolPhotoshop.send_images( + ret = call_async_func_in_server_thread(ProtocolPhotoshop.send_images( instance_id=document['instance_id'], document_identify=document['identify'], image_blobs=[p['image_blob'] for p in params], @@ -249,7 +248,13 @@ def define_comfyui_nodes_legacy(sdppp): boundaries=[p['boundary'] for p in params], new_layer_name=sdppp_arg_item['lastOpenedWorkflow'] )) - ret_layer_or_group = [None] if not linked_style else layer_or_group + ret_layer_or_group = [] + for i, ret_layer in enumerate(ret['layers']): + ret_layer_or_group.append({ + 'document': document, + 'layer_identify': ret_layer['identify'], + 'dirtyID': ret_layer['dirtyID'] + }) return (ret_layer_or_group,) class CLIPTextEncodePSRegional: diff --git a/typescripts/modules/photoshop-internal b/typescripts/modules/photoshop-internal index 3710d78..42e68c0 160000 --- a/typescripts/modules/photoshop-internal +++ b/typescripts/modules/photoshop-internal @@ -1 +1 @@ -Subproject commit 3710d7895197cce16a0fce3b08297c6082e7851f +Subproject commit 42e68c0697d23ccd89db800eca2fedb702363408