From c5528af71c6fe4828aa6f3f972fba38572956328 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Fri, 14 Jan 2022 03:16:33 -0800 Subject: [PATCH] Expose add_named_bind for all essential skin bindings. --- doc/classes/Skin.xml | 7 +++++++ scene/resources/skin.cpp | 1 + 2 files changed, 8 insertions(+) diff --git a/doc/classes/Skin.xml b/doc/classes/Skin.xml index d24963a8876..572558c3f5a 100644 --- a/doc/classes/Skin.xml +++ b/doc/classes/Skin.xml @@ -14,6 +14,13 @@ + + + + + + + diff --git a/scene/resources/skin.cpp b/scene/resources/skin.cpp index d371598cc05..54ed71999c4 100644 --- a/scene/resources/skin.cpp +++ b/scene/resources/skin.cpp @@ -143,6 +143,7 @@ void Skin::_bind_methods() { ClassDB::bind_method(D_METHOD("get_bind_count"), &Skin::get_bind_count); ClassDB::bind_method(D_METHOD("add_bind", "bone", "pose"), &Skin::add_bind); + ClassDB::bind_method(D_METHOD("add_named_bind", "name", "pose"), &Skin::add_named_bind); ClassDB::bind_method(D_METHOD("set_bind_pose", "bind_index", "pose"), &Skin::set_bind_pose); ClassDB::bind_method(D_METHOD("get_bind_pose", "bind_index"), &Skin::get_bind_pose);