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 call_recursive method to TreeItem #22834

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

lupoDharkael
Copy link
Contributor

@lupoDharkael lupoDharkael commented Oct 7, 2018

Implementation of call_recursive("method", args...) as mentioned here.

What to do with the return? vararg methods require a Variant as a return parameter, should this use it somehow or always return an empty variant?
if it returns an empty variant should the docs say something about it? I added <return type="Variant"> in TreeItem.xml

@Xrayez
Copy link
Contributor

Xrayez commented Oct 17, 2018

This could simplify #19936.

@lupoDharkael lupoDharkael changed the title [WIP] Add call_recursive method to TreeItem Add call_recursive method to TreeItem May 1, 2019
@lupoDharkael
Copy link
Contributor Author

This should be ready to merge but I'd like to have feedback about returning an empty Variant. I did this a while ago.

scene/gui/tree.cpp Outdated Show resolved Hide resolved
scene/gui/tree.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga requested a review from groud July 2, 2019 08:05
@lupoDharkael lupoDharkael requested a review from a team as a code owner September 4, 2019 10:42
@lupoDharkael
Copy link
Contributor Author

I've fixed the typos! (sorry for the delay)

@akien-mga akien-mga merged commit ee611d1 into godotengine:master Oct 4, 2019
@akien-mga
Copy link
Member

Thanks!

@lupoDharkael lupoDharkael deleted the recursive-item branch December 14, 2019 19:35
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.

3 participants