X Tutup
The Wayback Machine - https://web.archive.org/web/20201220223640/https://github.com/paceholder/nodeeditor/pull/209
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

Dynamic port node #209

Open
wants to merge 13 commits into
base: master
from
Open

Conversation

@signmotion
Copy link
Contributor

@signmotion signmotion commented Jan 31, 2019

Thanks for awesome node editor, Dmitry! I played with him a few evenings and delighted with the architect and opportunities for decor it.

I added the signals for add and remove ports. Maybe you want to add this to your repository. Video: https://youtu.be/KUt4qlTLrW0

There is a problem when removing connections. I didn't know how correct remove connections from the FlowScene.

@paceholder
Copy link
Owner

@paceholder paceholder commented Feb 6, 2019

Hey, this looks awesome.

Let me stabilize continuous integration builds and then I come back to your PR.

Regards,

Dmitry

@paceholder paceholder self-requested a review Feb 6, 2019
@paceholder
Copy link
Owner

@paceholder paceholder commented Feb 6, 2019

Could you please rebase onto the latest master and squash your commits?

signmotion and others added 9 commits Feb 7, 2019
@signmotion
Copy link
Contributor Author

@signmotion signmotion commented Feb 7, 2019

Did this, Dmitry.
I seem to make a mistake with the rebase and squash branches. I do not how to fix it in this PR, sorry.

@aol-nnov aol-nnov mentioned this pull request Feb 17, 2019
@aol-nnov
Copy link

@aol-nnov aol-nnov commented Feb 17, 2019

@paceholder , if @signmotion will refuse to fulfill your requirements, please find my pull request with his work squashed and rebased.

@willys0
Copy link

@willys0 willys0 commented Aug 12, 2020

Hi, great feature, I've been using it in my fork.
I noticed that my application would crash when loading scenes with dynamic port nodes with an out-of-range exception on the input/output connection vectors in the nodestates.

I created a new PR with fix #268 for anyone who might need this feature (since the original PR has not been accepted yet)

@Daguerreo
Copy link

@Daguerreo Daguerreo commented Aug 13, 2020

I played a bit with this branch and the @willys0 fix. The main point is Node::onPortAdded() and Node::onPortRemoved() just resize the underlying connection vector, so they kinda works when the last port is added or removed, but if I have 5 ports connected and remove connection at index 2 the layout breaks. So I guess at least signal portRemoved() e and onPortRemoved should have the index of the connection port removed to correctly remove the right port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
nodeeditor
Awaiting triage
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants
You can’t perform that action at this time.
X Tutup