Skip to content

Conversation

@kevinlam508
Copy link
Contributor

@kevinlam508 kevinlam508 commented Oct 27, 2025

Fixes #102793

Issue was that script property of child nodes weren't assigned by the time a parent node's node properties were being processed. So _duplicate_properties() would grab the correct node, but set() would fail from type checking since the node didn't have a script on it.

#91329 caused the issue since it removed the property copy pass that would successfully do assignment since the first pass copied the scripts.

This fix ensures at least the script property is copied before trying to assign node properties. Couldn't only change the traversal order of _duplicate_properties() since that would cause nodes with references to ancestors to fail assignment instead.

@kevinlam508 kevinlam508 requested a review from a team as a code owner October 27, 2025 06:45
@AThousandShips AThousandShips added this to the 4.6 milestone Oct 27, 2025
Script assignment must be complete for the subtree in order to correctly assign into properties set to a script type.
@kevinlam508 kevinlam508 force-pushed the custom-node-reference-duplication branch from 1ab618d to b9cc82d Compare October 27, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Node.duplicate copies exported custom-class-typed node property pointing to a descendant Node as null

3 participants