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

Inherited Scenes that also inherit from the same .gd class can't hold default values in exported variables #2958

Closed
kubecz3k opened this issue Nov 30, 2015 · 2 comments
Milestone

Comments

@kubecz3k
Copy link
Contributor

The bug was reproduced in 222d112 build, but with manually reversed fix from: 884d5a0 since with this fix it's not possible to use Inherited Scenes feature at all.

  1. You have BaseScene.xscn that has a script "BaseScript.gd".
  2. You have a scene "ExtendedScene.xscn" that inherit from BaseScene.xscn and have a "ExtendedScript.gd" script that inherit from BaseScript.gd.
  3. If in BaseScript.gd you will have any exported variable you wont be able to hold in "ExtendedScene.xscn" default value of this variable.

Video for quick judge:
https://youtu.be/JgwUxxqv7KE
Sample project:
https://dl.dropboxusercontent.com/u/168251/godot/InheritedSceneAndPropertyLost.7z

@kubecz3k kubecz3k added this to the 2.0 milestone Nov 30, 2015
@reduz
Copy link
Member

reduz commented Dec 12, 2015

I can't seem to reproduce, or maybe i'm doing something wrong?

@reduz reduz closed this as completed in 1010495 Dec 12, 2015
@kubecz3k
Copy link
Contributor Author

I can confirm it's fixed now, thanks!

reduz added a commit that referenced this issue Jan 24, 2016
…ce and inheritance

-Fixes #3127 and also properly fixes #2958
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants