Add bypass action to selection toolbox (#2616)

This commit is contained in:
Chenlei Hu
2025-02-18 12:25:49 -05:00
committed by GitHub
parent 28dd6a2702
commit 25e5ab3a36
5 changed files with 55 additions and 8 deletions

View File

@@ -366,6 +366,7 @@ export function useCoreCommands(): ComfyCommand[] {
versionAdded: '1.3.11',
function: () => {
toggleSelectedNodesMode(LGraphEventMode.NEVER)
app.canvas.setDirty(true, true)
}
},
{
@@ -375,6 +376,7 @@ export function useCoreCommands(): ComfyCommand[] {
versionAdded: '1.3.11',
function: () => {
toggleSelectedNodesMode(LGraphEventMode.BYPASS)
app.canvas.setDirty(true, true)
}
},
{
@@ -386,6 +388,7 @@ export function useCoreCommands(): ComfyCommand[] {
getSelectedNodes().forEach((node) => {
node.pin(!node.pinned)
})
app.canvas.setDirty(true, true)
}
},
{
@@ -411,6 +414,7 @@ export function useCoreCommands(): ComfyCommand[] {
getSelectedNodes().forEach((node) => {
node.collapse()
})
app.canvas.setDirty(true, true)
}
},
{