fix(plugin): 图片处理动作只在 ref 节点出现(不再挂 gen/out/layer)
- image-annotate 1.0.2 / white-bg-800 1.0.1 / xianyi-cutout 1.0.2 - 产图节点一个可能有多张结果或多个图层,getNodeImage 只能取 result[0],漂浮菜单里放「编辑图片」会被误读成「编辑结果图」;先「复制/插入为参考图节点」 - 命令面板通道不受影响(仍可显式调用)
This commit is contained in:
1 parent
9e09a48285
commit
75876f92be
10 files changed
+17
-14
No files matched your search
@@ -9,7 +9,7 @@
|
||||
var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
id: 'image-annotate',
|
||||
name: '标注 / 修图',
|
||||
version: '1.0.1',
|
||||
version: '1.0.2',
|
||||
apiVersion: 1,
|
||||
capabilities: ['commands', 'nodeActions', 'canvas', 'canvasWrite'],
|
||||
}
|
||||
@@ -4575,7 +4575,7 @@ var __IWB_ANNOTATE_MANIFEST__ = {
|
||||
}
|
||||
function appliesTo(node) {
|
||||
if (!node) return false;
|
||||
return node.type === "ref" || node.type === "out" || node.type === "gen" || node.type === "layer";
|
||||
return node.type === "ref";
|
||||
}
|
||||
ctx.nodeActions.register({
|
||||
id: "annotate-node",
|
||||
|
||||
Reference in new issue
Block a user