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

Add flags parameter to Node.duplicate() #7855

Merged
merged 1 commit into from Feb 26, 2017

Conversation

RandomShaper
Copy link
Member

@RandomShaper RandomShaper commented Feb 20, 2017

to decide whether signals, groups and/or scripts should be set in the copied nodes or not; it's default value makes the method work as usual, that is, including everything. So non-breaking change.

(This is the version for 2.1 of #7856.)

Motivation: my use case is to copy a hierarchy of nodes in a behaviorless fashion because I just want a visual copy of the original node so I can apply certain effects on it. With these flags I can control what kind of duplicate I want.

Furthermore, it avoids some error prints (which lag the game) about signals with targets outside the subtree being copied.

I believe more people will find this useful.

to decide whether signals, groups and/or scripts should be set in the copied nodes or not; it's default value makes the method work as usual, that is, including everything
@akien-mga akien-mga added this to the 2.1 milestone Feb 26, 2017
@akien-mga akien-mga merged commit 902288c into godotengine:2.1 Feb 26, 2017
@RandomShaper RandomShaper deleted the add-duplicate-flags-2.1 branch March 5, 2017 23:37
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.

None yet

3 participants