Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add bypass to readme and add a Bypass menu option to the nodes.

comfyanonymous7567c4ac8fde
diff --git a/README.md b/README.md
index b055325ed..baa8cf8b6 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,7 @@ Workflow examples can be found on the [Examples page](https://comfyanonymous.git
| Ctrl + O | Load workflow |
| Ctrl + A | Select all nodes |
| Ctrl + M | Mute/unmute selected nodes |
+| Ctrl + B | Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through) |
| Delete/Backspace | Delete selected nodes |
| Ctrl + Delete/Backspace | Delete the current graph |
| Space | Move the canvas around when held and moving the cursor |
diff --git a/web/scripts/app.js b/web/scripts/app.js
index 40156abc3..1c95c765c 100644
--- a/web/scripts/app.js
+++ b/web/scripts/app.js
@@ -284,6 +284,11 @@ export class ComfyApp {
}
}
+ options.push({
+ content: "Bypass",
+ callback: (obj) => { if (this.mode === 4) this.mode = 0; else this.mode = 4; this.graph.change(); }
+ });
+
// prevent conflict of clipspace content
if(!ComfyApp.clipspace_return_node) {
options.push({