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

Fix group node copy paste #1069

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Fix group node copy paste #1069

merged 2 commits into from
Oct 2, 2024

Conversation

christian-byrne
Copy link
Collaborator

@christian-byrne christian-byrne commented Oct 2, 2024

Two issues with group node copy/paste:

  1. Group nodes unregister themselves when app.clean is called (pressing "Clear Workflow", loading a blank workflow), preventing copy-pasting between workflows afterwards.
    Replicate: create group node, "Workflow" -> "New", try to copy/paste group node between workflows.
    Fix: Remove unregistration. It no longer makes sense when multiple workflows can be open simultaneously.

  2. Group nodes are added to app.graph.extra during construction but not after copy/pasting.
    Replicate: create group node, paste to another workflow, reload or save/load that workflow.
    Fix: Add to app.graph.extra during node creation callback.

browser_tests/ComfyPage.ts Outdated Show resolved Hide resolved
@huchenlei
Copy link
Member

Can you do a rebase instead of merge? Currently it captures many changes not belonging to this PR.

@huchenlei huchenlei merged commit a737be7 into main Oct 2, 2024
9 checks passed
@huchenlei huchenlei deleted the groupnode/copy-paste branch October 2, 2024 19:51
@christian-byrne
Copy link
Collaborator Author

Can you do a rebase instead of merge? Currently it captures many changes not belonging to this PR.

Sorry - Thanks for doing it.

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