Skip to content

Support removing related links when deleting nodes and allow multiple links per pin#71

Open
fgfxf wants to merge 132 commits into
Fattorino:masterfrom
fgfxf:master
Open

Support removing related links when deleting nodes and allow multiple links per pin#71
fgfxf wants to merge 132 commits into
Fattorino:masterfrom
fgfxf:master

Conversation

@fgfxf

@fgfxf fgfxf commented May 22, 2026

Copy link
Copy Markdown

Summary

This PR adds safer link cleanup when deleting nodes and allows pins to hold multiple links.

Details

Previously, deleting a node did not always remove the links connected to its pins. This could leave dangling links in the graph and potentially cause invalid pointer access when the graph was rendered or updated later.

This PR updates the link removal logic so that all links related to a node are removed before the node itself is erased. It also changes pin link management to support multiple links per pin.

Changes

  • Clean up all links connected to a node before deleting it.
  • Remove stale or invalid link entries during traversal.
  • Allow pins to store and manage multiple links.
  • Prevent links from referencing deleted pins/nodes.

Testing

Manually tested by creating nodes with single and multiple links, deleting connected nodes, and verifying that related links are removed correctly while unrelated links remain valid.

Fattorino and others added 30 commits January 29, 2024 18:19
Added credits
Getting ready for first release.
Getting ready for first release.
viewport_wrapper.h will become a stand-alone helper for rendering multiple viewport with ease.
Refactored confusing method's names.
Implemented generic type Pin UID system.
Improved documentation.
Fixed OutPin graphic bug.
Added additional hit-box on pin's circle + little animation.
Pavanakumar Mohanamuraly and others added 26 commits April 29, 2025 14:08
…e_ calling DestroyContext() on main context.
…ererHasTextures matches between contexts. fix for imgui 1.92.
Fix logic for dynamic inputs + add full node size calculation
currently when zooming this causes the links & nodes to become detached from the mouse pointer. This fix makes sure they stay attached to the mouse.
Fix zooming messing up dragging
Added nullptr check in Link destructor
@Fattorino

Copy link
Copy Markdown
Owner

The code formatting doesn't match the one used. Comments should be purely English. Describe the problem you are fixing

@fgfxf fgfxf force-pushed the master branch 2 times, most recently from 652d2b6 to 1a0574d Compare May 27, 2026 04:41
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.

8 participants