Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurse into resources to check for changed node paths #80721

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

tom95
Copy link
Contributor

@tom95 tom95 commented Aug 17, 2023

Fixes #74155 by recursing into resources when checking for changed NodePaths. Also verified to work with custom resources.

The added code follows the same pattern as the code that handles Node subclasses. For Node subclasses, however, the existing code does some extra work we don't need for resources, such as recursing into the Node's children and scanning for related AnimationPlayers.

@tom95 tom95 requested a review from a team as a code owner August 17, 2023 14:03
@akien-mga akien-mga added this to the 4.2 milestone Aug 17, 2023
editor/scene_tree_dock.cpp Outdated Show resolved Hide resolved
@akien-mga
Copy link
Member

Looks good! Could you squash the commits? See PR workflow for instructions.

@tom95 tom95 force-pushed the resource-node-path-renaming branch from 1401307 to 42a3108 Compare October 2, 2023 20:00
@tom95
Copy link
Contributor Author

tom95 commented Oct 2, 2023

Thanks for the note @akien-mga, I had forgotten. All done now :)

@akien-mga akien-mga merged commit c3046f4 into godotengine:master Oct 3, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

Nested Resource doesn't update NodePath when node renamed or moved
3 participants