Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent converted widget being duplicated #1115

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

webfiltered
Copy link
Collaborator

@webfiltered webfiltered commented Oct 5, 2024

If multiple calls are made to LGraphNode.convertWidgetToInput, multiple inputs will be created, corrupting the node.

Multiple calls are not made when this function is called by _frontend's context menus, but it does impact any other callers / extensions. A popular example is Fix node (recreate) from ComfyUI Manager.

Reproduction:

  • Convert a widget to input
  • Right click node, then click Fix node (recreate)
  • New node has duplicate converted inputs

@huchenlei huchenlei merged commit f201729 into Comfy-Org:main Oct 5, 2024
9 checks passed
@webfiltered webfiltered deleted the convert-widget-duplication branch October 5, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants