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

Fix modifying base script exports not propagating to derived scripts #83123

Merged

Conversation

astillich
Copy link
Contributor

@astillich astillich commented Oct 10, 2023

Fixes issue #82998 by triggering an update in derived scripts if an export changes on of the base scripts in the hierarchy. Tested over three levels of inheritance with editing the default value and adding / removing exports.

Bugsquad edit: fixes #82998

@astillich astillich requested a review from a team as a code owner October 10, 2023 21:14
@bitsawer bitsawer added this to the 4.2 milestone Oct 11, 2023
Copy link
Member

@vnen vnen left a comment

Choose a reason for hiding this comment

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

LGTM

@akien-mga akien-mga changed the title Fix modifying base script exports not propagating to derived scripts #82998 Fix modifying base script exports not propagating to derived scripts Oct 16, 2023
@akien-mga
Copy link
Member

Could you update the commit message to match our preferred style? https://github.com/godotengine/godot/blob/master/CONTRIBUTING.md#format-your-commit-messages-with-readability-in-mind

…e opened property editor

This patch fixes the user having to navigate away from the selected node which has the derived script attached and back to see the changes of the base script exports reflected in the property editor.
@astillich astillich force-pushed the 82998-propagate-base-class-exports branch from f6a063a to 99f8751 Compare October 16, 2023 15:55
@akien-mga akien-mga merged commit 6a0716d into godotengine:master Oct 16, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

I was about to thank you for your first contribution, but then I looked at the history and found your previous one 9 years ago... that's a big one! #1002

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.

Adding/removing base class export does not properly update inspector for inherited scripts
5 participants