[Cleanup] Remove duplicate code (#754)

- Removes null widget skip - this _should_ throw
- Removes widget locator that was on LGraphCanvas - canvas should not
functions that find things in graph space.
This commit is contained in:
filtered
2025-03-12 03:41:37 +11:00
committed by GitHub
parent b223c60cd0
commit 27873d0351
2 changed files with 2 additions and 35 deletions

View File

@@ -1902,7 +1902,6 @@ export class LGraphNode implements Positionable, IPinnable, IColorable {
for (const widget of widgets) {
if (
!widget ||
(widget.disabled && !includeDisabled) ||
widget.hidden ||
(widget.advanced && !this.showAdvanced)