Merge pull request #96056 from Lielay9/expose_canvas_item_attach_skeleton

Expose `RenderingServer.canvas_item_attach_skeleton`
This commit is contained in:
Rémi Verschelde 2024-09-02 12:13:08 +02:00
commit 28b2ed50b7
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 9 additions and 0 deletions

View file

@ -412,6 +412,14 @@
[b]Note:[/b] [param count] is unused and can be left unspecified.
</description>
</method>
<method name="canvas_item_attach_skeleton">
<return type="void" />
<param index="0" name="item" type="RID" />
<param index="1" name="skeleton" type="RID" />
<description>
Attaches a skeleton to the [CanvasItem]. Removes the previous skeleton.
</description>
</method>
<method name="canvas_item_clear">
<return type="void" />
<param index="0" name="item" type="RID" />

View file

@ -3263,6 +3263,7 @@ void RenderingServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("canvas_item_set_z_index", "item", "z_index"), &RenderingServer::canvas_item_set_z_index);
ClassDB::bind_method(D_METHOD("canvas_item_set_z_as_relative_to_parent", "item", "enabled"), &RenderingServer::canvas_item_set_z_as_relative_to_parent);
ClassDB::bind_method(D_METHOD("canvas_item_set_copy_to_backbuffer", "item", "enabled", "rect"), &RenderingServer::canvas_item_set_copy_to_backbuffer);
ClassDB::bind_method(D_METHOD("canvas_item_attach_skeleton", "item", "skeleton"), &RenderingServer::canvas_item_attach_skeleton);
ClassDB::bind_method(D_METHOD("canvas_item_clear", "item"), &RenderingServer::canvas_item_clear);
ClassDB::bind_method(D_METHOD("canvas_item_set_draw_index", "item", "index"), &RenderingServer::canvas_item_set_draw_index);