Skip to content

Fix scene not updating when connections change - #78

Merged
vade merged 1 commit into
Fabric-Project:mainfrom
JustinMeans:fix/scene-sync-on-connection-change
Nov 15, 2025
Merged

vade merged 1 commit into
Fabric-Project:mainfrom
JustinMeans:fix/scene-sync-on-connection-change

Conversation

@JustinMeans

@JustinMeans JustinMeans commented Nov 15, 2025 •

Copy link
Copy Markdown
Contributor

Metal render view doesn't update when node connections are added/removed.

Still fixing and finding better solution, WIP.

Rebuild scene from scratch in syncNodesToScene() instead of only adding
new objects. Fixes issue where disconnecting nodes leaves stale geometry
in the render view.
@JustinMeans
JustinMeans marked this pull request as draft November 15, 2025 14:05
@vade

vade commented Nov 15, 2025

Copy link
Copy Markdown
Member

Ah, that tracks! Lovely fix! Totally missed this cause. Nice catch.

@vade

vade commented Nov 15, 2025

Copy link
Copy Markdown
Member

Actually, pondering this fix / bug, i suspect its also responsible for memory retain cycle in the graph code.

Nice.

@JustinMeans

Copy link
Copy Markdown
Contributor Author

Cool, feel free to make whatever changes you want. I wasn't sure if this was best performance-wise so changed to a draft.

@vade

vade commented Nov 15, 2025

Copy link
Copy Markdown
Member

Yea, i was / am leery of doing too much scene graph fiddling but correctness over perf (generally) at this stage of the game!

@vade
vade marked this pull request as ready for review November 15, 2025 14:32
@vade
vade merged commit 92127e6 into Fabric-Project:main Nov 15, 2025
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