mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 17:40:09 +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({
|
||||
content: 'Bypass',
|
||||
callback: (obj) => {
|
||||
if (this.mode === LGraphEventMode.BYPASS)
|
||||
this.mode = LGraphEventMode.ALWAYS
|
||||
else this.mode = LGraphEventMode.BYPASS
|
||||
const mode =
|
||||
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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user