Skip to content

Separate pass to convert hidden nodes into identity nodes - #4644

Open
0HyperCube wants to merge 1 commit into
GraphiteEditor:masterfrom
0HyperCube:fix-hidden-crash
Open

0HyperCube wants to merge 1 commit into
GraphiteEditor:masterfrom
0HyperCube:fix-hidden-crash

Conversation

@0HyperCube

Copy link
Copy Markdown
Contributor

Closes #4631. Thanks to @YohYamasaki for reporting and bisecting the issue.

Previously the hidden nodes were dealt with at the same time as the flattening. This meant that there were some cases where e.g. the cloned node wouldn't be added for values when hiding nodes. By separating the passes, the logic becomes more easy to reason about and more robust.

Also added some tests for hidden nodes.

@0HyperCube
0HyperCube requested a review from TrueDoctor as a code owner October 3, 2026 21:47

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread node-graph/graph-craft/src/document.rs
@Keavon Keavon changed the title Seperate pass to convert hidden nodes into identity nodes Separate pass to convert hidden nodes into identity nodes Oct 3, 2026

This branch has not been deployed

No deployments
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.

Crash when hiding the only layer in an artboard

1 participant