fix: 八方向拆分不再切断角色;全仓库参数补齐中文 tooltip

【修复】角色被格线切断(脚、手杖、飘起的斗篷被削掉)
新增 expand_beyond_cell(默认开启):格子只用来判定「这是哪个方向」,
角色的实际范围由它自身的连通区域决定,按质心归属确保邻居不混入。
实测 8/8 方向的裁剪框边缘 alpha 从 1.00(内容顶到边界=被切断)
降到 0.00,S 方向高度 326→356、E 方向宽度 150→188 把缺的部分找了回来。
代价是需要两遍扫描(先求全序列并集框再提取),耗时 4.7s→14.9s。

【规则】每个参数都必须有中文 tooltip,作为以后的统一约定
全仓库 26 个节点 169 个参数,此前缺 115 个,现已 100% 覆盖。
tooltip 写「怎么调」而不只是「是什么」:给取值区间的实际影响、
推荐值与踩坑提示(如 OpenAI/ZenMux 的地址栏不能带 :// ,
素材拆分节点用于动画序列时顺序会漂移等)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
rui40000
2026-07-29 19:07:01 +08:00
co-authored by Claude Opus 4.8
parent 28fd14aaad
commit 5d3834503e
25 changed files with 512 additions and 123 deletions
+11 -5
View File
@@ -12,25 +12,31 @@ class TextListNode:
"required": {
"text1": ("STRING", {
"multiline": True,
"default": ""
"default": "",
"tooltip": "第 1 段文本。列表按 text1~text5 的顺序组织,\n"
"空白段会被自动跳过,不会在列表里留空位。"
}),
},
"optional": {
"text2": ("STRING", {
"multiline": True,
"default": ""
"default": "",
"tooltip": "第 2 段文本,留空则跳过。"
}),
"text3": ("STRING", {
"multiline": True,
"default": ""
"default": "",
"tooltip": "第 3 段文本,留空则跳过。"
}),
"text4": ("STRING", {
"multiline": True,
"default": ""
"default": "",
"tooltip": "第 4 段文本,留空则跳过。"
}),
"text5": ("STRING", {
"multiline": True,
"default": ""
"default": "",
"tooltip": "第 5 段文本,留空则跳过。"
}),
}
}