-
-
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
Add CanvasItem::get_canvas_layer_node()
#87095
Conversation
81c77c8
to
dbfc368
Compare
Please edit in your opening post the last line and change it to: This change will link this PR to that proposal and causes github to automatically close the proposal, when this PR gets merged. These keywords are explained in https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests. |
dbfc368
to
e676541
Compare
Thank you! I've fixed both issues you mentioned. |
c0cd35e
to
d350bcd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with ERR_READ_THREAD_GUARD_V
, but otherwise the PR changes look correct.
CanvasLayer::get_canvas_layer()
& add get_canvas_layer_node()
CanvasLayer::get_canvas_layer()
& add get_canvas_layer_node()
CanvasItem::get_canvas_layer()
& add get_canvas_layer_node()
I think I am ok with exposing the node, as there seem to be no way to retrieve it easily otherwise. I'd, however, avoid exposing
Also, I think the use case is not common enough to justify exposing |
Okay, I'll de-expose |
d350bcd
to
9a7c3d6
Compare
The commit could use a different name since |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation is completely fine, though
CanvasItem::get_canvas_layer()
& add get_canvas_layer_node()
CanvasItem::get_canvas_layer_node()
9a7c3d6
to
6a17f2a
Compare
Thanks! And congrats for your first merged Godot contribution 🎉 |
CanvasLayer::get_canvas_layer_node
, which returns the CanvasLayer node the CanvasItem is in. Returnsnullptr
when the CanvasItem is not in a CanvasLayer node.Fix godotengine/godot-proposals#8863