-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Signals are not duplicated with their parent node when created from editor UI #1888
Comments
It looks like this bug is caused by the fact that signals are not duplicated (if they were set from gui). |
Changed title to better reflect actual issue. |
This was fixed by the above PR, but was not closed automatically. |
Unfortunately the fix was only partial, signals that are emitted by internal (not scene root) nodes are still lost during duplication.
Here is projects for testing these things: |
Related issue but with variable values: #3393 |
There might be a problem if someone actually wants a shallow copy. Recursively copying all variables, signals, groups, and stuff will create an overhead if the programmer does not want to duplicate the state, but only the structure. IMO this should be optional and default to a shallow copy. |
@vnen I assume signals can be safety duplicated under the condition that both emitter and receiver are inside duplicated node. Currently it don't work even if emitter and receiver is the same node. |
I think this was fixed recently, can you confirm? |
Tested with the above-linked project and signal duplication seems to work fine now:
The issue about the failed test for root and inner variable values is likely #3393, so closing this one as fixed. |
Bugsquad edit: Initially seen in 1.1 rc2 and still exists in 2.0 alpha b2f9acb commit
Update2 (20.01.2016)
One more time, a better test project to test the issue: DuplicateTests.zip
Update:
New sample project that replicate this issue in more straightforward way:
https://dl.dropboxusercontent.com/u/168251/godot/bugsquad/NotDuplicatedSignalIssue.7z
Also small video that shows how issue has been replicated in this sample (for quick judge):
https://youtu.be/_fYBUKBWzrA
Old (not so relevant currently) content:
It seems that VisibilityEnabler/Notifer is not working if it's on a scene that has been duplicated with .duplicate() method. Below is a link to sample project that illustrates the problem.
https://dl.dropboxusercontent.com/u/168251/godot/some/issues/DuplicateIssue.7z
The text was updated successfully, but these errors were encountered: