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

Please provide an example how to get and delete a connection #721

Open
1 task done
pokecheater opened this issue Dec 31, 2024 · 1 comment
Open
1 task done

Please provide an example how to get and delete a connection #721

pokecheater opened this issue Dec 31, 2024 · 1 comment

Comments

@pokecheater
Copy link

pokecheater commented Dec 31, 2024

Description

Hi,

I stumbled with the update from vue2 to vue3 over the following problem: When I update my outputsockets of an already defined and connected node (since the underlying datamodel has changed) I had to remove the old sockets first.

When a socket is already connected this leads to broken left over connections that point into nirvana:

image

My workaround in your old version was to indentify those connections right at the socket and to call my remove Connection routine:

image

but now the connections are not available at the socket itself anymore. So how to identify my connections that belong to a certain socket and how to delete them afterwards (please note: that my nodes have a reference to the editor as I patched them already).

Greetz and thx in advance

Suggested Solution

Provide an example for advanced connection handling.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@pokecheater
Copy link
Author

For me it would be also fine, if you can tell me how to remove a certain connection instead of fixing it in your code. I already builded a workaround for the same issue in your old vue2 version. But with the new version I have no idea how to delete the connection. If you can please tell me how to do, I can build my own workaround againg.

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

No branches or pull requests

1 participant