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 Script -> Script Class not in CreateDialog #23060

Merged

Conversation

willnationsdev
Copy link
Contributor

@willnationsdev willnationsdev commented Oct 16, 2018

Related to #21461. (Previously would have completed it, had it not been changed)

(Edit: Looks like that PR deals specifically with a cyclic reference error showing up. My bad. This PR is about making sure that script classes which extend a non-class script still show up in the CreateDialog properly.)

This is more of a bandaid until #22181 can be merged for 3.2. The ClassType object is a lot better for this since it can carry the potential type name AND potential resource path within a single object that knows how to fetch the "base" typename regardless of what it's actually looking at.

The below implementation will allow script classes deriving a script to be interpreted as extensions of that script's engine type, but it WON'T support going from a script class to a script to another script class and allowing the 2nd script class to register that it is extending the first one. That sort of complexity is beyond the scope of this PR's solution.

@willnationsdev
Copy link
Contributor Author

Bump. As far as I'm aware, there shouldn't be any issues with this PR. It's all set for merge.

@akien-mga akien-mga merged commit af92b7d into godotengine:master Nov 26, 2018
@akien-mga
Copy link
Member

Thanks!

@willnationsdev willnationsdev deleted the inherit-non-class-script branch November 26, 2018 16:03
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.

2 participants