From 2ca2449339255f252cedd2df6912936b0708bac9 Mon Sep 17 00:00:00 2001 From: zombieyang Date: Sat, 17 May 2025 10:50:10 +0800 Subject: [PATCH] bugfixes --- plugins/photoshop/sdpppX.js | 1 - sdppp_python/comfy/nodes_legacy.py | 2 ++ typescripts/src/common/zh-cn.mts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/photoshop/sdpppX.js b/plugins/photoshop/sdpppX.js index e2c2c28..eb7dcc6 100644 --- a/plugins/photoshop/sdpppX.js +++ b/plugins/photoshop/sdpppX.js @@ -1,3 +1,2 @@ global.sdpppX = { - "MU": 1 } \ No newline at end of file diff --git a/sdppp_python/comfy/nodes_legacy.py b/sdppp_python/comfy/nodes_legacy.py index 642389b..9124382 100644 --- a/sdppp_python/comfy/nodes_legacy.py +++ b/sdppp_python/comfy/nodes_legacy.py @@ -239,6 +239,7 @@ def define_comfyui_nodes_legacy(sdppp): 'boundary': convert_mask_to_boundary(item_bound), 'image_blob': blob }) + # print('before send', time.time() - total_start_time) ret = call_async_func_in_server_thread(ProtocolPhotoshop.send_images( instance_id=document['instance_id'], @@ -248,6 +249,7 @@ def define_comfyui_nodes_legacy(sdppp): boundaries=[p['boundary'] for p in params], new_layer_name=sdppp_arg_item['lastOpenedWorkflow'] )) + # print('final', time.time() - total_start_time) if not 'layers' in ret: return ([None],) diff --git a/typescripts/src/common/zh-cn.mts b/typescripts/src/common/zh-cn.mts index 797f41f..bac218b 100644 --- a/typescripts/src/common/zh-cn.mts +++ b/typescripts/src/common/zh-cn.mts @@ -191,6 +191,8 @@ export default { 'GetSelection need Photoshop version 25+': 'GetSelection 需要 Photoshop 25+ 版本', 'Action {0} not found': 'Action {0} 未找到', 'Action set {0} not found': 'ActionSet {0} 未找到', + '{0} cannot be used in Photoshop Action Node': '{0} 不能在 Photoshop Action 节点中使用', + 'Group layers': '图层组', // photoshop modal state 'create document for sent images': '给发送的图片创建文档',