Merge pull request #56784 from V-Sekai/expose-add-named-bind

This commit is contained in:
Rémi Verschelde 2022-01-14 14:24:16 +01:00 committed by GitHub
commit f60c81af11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,13 @@
<description>
</description>
</method>
<method name="add_named_bind">
<return type="void" />
<argument index="0" name="name" type="String" />
<argument index="1" name="pose" type="Transform3D" />
<description>
</description>
</method>
<method name="clear_binds">
<return type="void" />
<description>

View File

@ -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);