diff options
| author | Elia Argentieri | 2016-12-24 15:27:08 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-01-12 19:15:28 +0100 |
| commit | 9b0be3753b0f056887def5fb2dc50c8f30ac8ca8 (patch) | |
| tree | 4e3761f618f342732afdcfc7a15808f6b3079862 | |
| parent | 56985712356f5b9d831529e5a3477103a3441dfc (diff) | |
| download | godot-9b0be3753b0f056887def5fb2dc50c8f30ac8ca8.tar.gz godot-9b0be3753b0f056887def5fb2dc50c8f30ac8ca8.tar.zst godot-9b0be3753b0f056887def5fb2dc50c8f30ac8ca8.zip | |
Expose set_bone_name and get_bone_name to GDscript
(cherry picked from commit b96e2e11264cd01aceed1b6101576b3c9376d710)
| -rw-r--r-- | scene/3d/bone_attachment.cpp | 5 | ||||
| -rw-r--r-- | scene/3d/bone_attachment.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/bone_attachment.cpp b/scene/3d/bone_attachment.cpp index 56b61d40e..7c0efb8ff 100644 --- a/scene/3d/bone_attachment.cpp +++ b/scene/3d/bone_attachment.cpp @@ -137,3 +137,8 @@ BoneAttachment::BoneAttachment() bound=false; } + +void BoneAttachment::_bind_methods(){ + ObjectTypeDB::bind_method(_MD("set_bone_name","bone_name"),&BoneAttachment::set_bone_name); + ObjectTypeDB::bind_method(_MD("get_bone_name"),&BoneAttachment::get_bone_name); +} diff --git a/scene/3d/bone_attachment.h b/scene/3d/bone_attachment.h index f1c27a965..beeb261a4 100644 --- a/scene/3d/bone_attachment.h +++ b/scene/3d/bone_attachment.h @@ -47,6 +47,8 @@ protected: void _get_property_list( List<PropertyInfo>* p_list ) const; void _notification(int p_what); + static void _bind_methods(); + public: void set_bone_name(const String& p_name); |
