-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Grandchildren Scenes don't inherit scripts #56584
Comments
Can't reproduce (W7, both in
For some unknown reason in
Such override haven't appear (automatically from nowhere) when I've tried to recreate the issue. |
Thank you for your reply! How strange, I just checked and it's generating that line into the file upon running the C scene. Before that, the file is generated as one would expect, and if the line is deleted the script will be attached correctly, but will not update if the script is detached on the parent. I created a new project, this time without running C, so the line shouldn't be there. I also got this confusing error message somewhere along the way.
I have also had a seemingly unrelated issue with child scenes only updating their inherited scripts if the parent scene is loaded in the editor, but I'm unsure whether I to make another issue. |
I think I must have been closing the scenes after creating them, and the issue is happening only if that grandchild (inheritance-wise) scene is open in the editor. I've edited my previous comment. Also it seems to happen for any property, it's not script-specific behavior. Try changing
I'm not getting any errors so it may be unrelated to this issue. Not sure what could be the cause.
Kinda related, kinda not, hard to tell. There are many issues for "inherited scene" reported, you can check them out. Actually just looked briefly at few of these issues and seems like this issue is a duplicate of #55964. |
Nice to know I wasn't the only one. Should I close this issue, since it's a duplicate, or should I wait until the bugs are fixed? |
Duplicate of #7984. |
Godot version
3.4stable
System information
Ubuntu 20.04
Issue description
When creating long chains of inherited scenes in Godot, the information of the script attached is lost for grandchildren and beyond.
Steps to reproduce
Create a scene A, then create an inherited scene B from A. After that create an inherited scene C from B. Now attach a script to A. B will have the script attached but C will not.
Edit: All scenes must be open in the editor.
Minimal reproduction project
InheritanceBug.zip
The text was updated successfully, but these errors were encountered: