mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 09:44:06 +00:00
[Cleanup] Removes unused code (#996)
- Removes unused code - Removes unnecessary globalAlpha reset when drawing reroute highlight
This commit is contained in:
@@ -4037,12 +4037,7 @@ export class LGraphCanvas {
|
||||
if (!LiteGraph.snap_highlights_node || !linkConnector.isConnecting || linkConnectorSnap) return
|
||||
|
||||
// Reroute highlight
|
||||
if (overReroute) {
|
||||
const { globalAlpha } = ctx
|
||||
ctx.globalAlpha = 1
|
||||
overReroute.drawHighlight(ctx, "#ffcc00aa")
|
||||
ctx.globalAlpha = globalAlpha
|
||||
}
|
||||
overReroute?.drawHighlight(ctx, "#ffcc00aa")
|
||||
|
||||
// Ensure we're mousing over a node and connecting a link
|
||||
const node = this.node_over
|
||||
|
||||
Reference in New Issue
Block a user