From 94e434b34e288041ab5bc2eaaefe035242d1ab15 Mon Sep 17 00:00:00 2001
From: Hei <40064911+Lielay9@users.noreply.github.com>
Date: Sun, 25 Aug 2024 03:34:39 +0300
Subject: [PATCH] Expose the function
'RenderingServer.canvas_item_attach_skeleton'
---
doc/classes/RenderingServer.xml | 8 ++++++++
servers/rendering_server.cpp | 1 +
2 files changed, 9 insertions(+)
diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml
index c81d5d4fab8..4cdfba17e9e 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.
+
+
+
+
+
+ Attaches a skeleton to the [CanvasItem]. Removes the previous skeleton.
+
+
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp
index 92f0f0dbc0c..1848d5602ef 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);