diff options
author | Hei <40064911+Lielay9@users.noreply.github.com> | 2024-08-25 03:34:39 +0300 |
---|---|---|
committer | Hei <40064911+Lielay9@users.noreply.github.com> | 2024-08-25 04:13:04 +0300 |
commit | 94e434b34e288041ab5bc2eaaefe035242d1ab15 (patch) | |
tree | 8e4e092d55b5c537f8a04e935e39ac7565fd8bff | |
parent | e3550cb20f5d6a61befaafb7d9cbdb57b24870e4 (diff) | |
download | redot-engine-94e434b34e288041ab5bc2eaaefe035242d1ab15.tar.gz |
Expose the function 'RenderingServer.canvas_item_attach_skeleton'
-rw-r--r-- | doc/classes/RenderingServer.xml | 8 | ||||
-rw-r--r-- | servers/rendering_server.cpp | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index c81d5d4fab..4cdfba17e9 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -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" /> diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 92f0f0dbc0..1848d5602e 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -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); |