-
Notifications
You must be signed in to change notification settings - Fork 441
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 MultiRootInheritanceGraph not detecting circular inheritance #5672
base: master
Are you sure you want to change the base?
Conversation
I uhh think the tests might be borked... The run fine normally on my computer 😢 |
6 hour test real |
Figured out the issue with the test. The issue is that the I'm unsure how I should fix this! Here is what I think I could do: For the person reviewing this, or anyone who has an idea 😆, let me know what I should do 🫡 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not an engine maint, but this looks good to me! Just a few suggested tweaks.
MultiRootInheritanceGraph
failed to properly detect the case of you being your own parent! This caused an infinite loop on start up of SS14 if you had a prototype whose parent was itself.Example:
I think the fix is just to add yourself to the data structure before checking for circular inheritance but I could be wrong! You could also just manually check that you don't have yourself as a parent but that seemed hacky. This makes sense and does appear to work.