mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
Bypass selected nodes (#2013)
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
This commit is contained in:
@@ -590,9 +590,13 @@ export class ComfyApp {
|
|||||||
options.push({
|
options.push({
|
||||||
content: 'Bypass',
|
content: 'Bypass',
|
||||||
callback: (obj) => {
|
callback: (obj) => {
|
||||||
if (this.mode === LGraphEventMode.BYPASS)
|
const mode =
|
||||||
this.mode = LGraphEventMode.ALWAYS
|
this.mode === LGraphEventMode.BYPASS
|
||||||
else this.mode = LGraphEventMode.BYPASS
|
? LGraphEventMode.ALWAYS
|
||||||
|
: LGraphEventMode.BYPASS
|
||||||
|
for (const item of app.canvas.selectedItems) {
|
||||||
|
if (item instanceof LGraphNode) item.mode = mode
|
||||||
|
}
|
||||||
this.graph.change()
|
this.graph.change()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user