Skip to content

Fix duplicate shared upstream nodes when duplicating layers#3654

Open
afrdbaig7 wants to merge 1 commit intoGraphiteEditor:masterfrom
afrdbaig7:fix-duplicate-nodes-issue-2501-clean
Open

Fix duplicate shared upstream nodes when duplicating layers#3654
afrdbaig7 wants to merge 1 commit intoGraphiteEditor:masterfrom
afrdbaig7:fix-duplicate-nodes-issue-2501-clean

Conversation

@afrdbaig7
Copy link
Contributor

This PR fixes an issue where duplicating multiple layers that share the same input Text node would create multiple duplicate Text nodes instead of reusing a single one. The problem occurred because shared upstream nodes added during traversal weren’t being tracked, allowing the same node to be collected more than once. The fix ensures each upstream node is handled only once while preserving the existing traversal order, so duplicating shared layer chains now behaves as expected.

Fixes #2501.

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.

Edit->Duplicate in the node graph makes extra duplicates of reused input nodes

1 participant