feat(extensions): Allow hiding link connectors

Thank you for adding this feature (linksRenderMode) to core. I would like to add the "Hidden" option (invalid number 3 will just hide the connector lines), so that I can remove that extension from my extension pack to prevent conflicts

https://github.com/failfa-st/failfast-comfyui-extensions
This commit is contained in:
Gregor Adams 2023-08-09 13:03:30 +02:00 committed by GitHub
parent a5599ed42c
commit af32197067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const ext = {
name: "Link Render Mode", name: "Link Render Mode",
defaultValue: 2, defaultValue: 2,
type: "combo", type: "combo",
options: LiteGraph.LINK_RENDER_MODES.map((m, i) => ({ options: [...LiteGraph.LINK_RENDER_MODES, "Hidden"].map((m, i) => ({
value: i, value: i,
text: m, text: m,
selected: i == app.canvas.links_render_mode, selected: i == app.canvas.links_render_mode,