Merge pull request #7363 from Elinvention/bone_attachment

Expose set_bone_name and get_bone_name to GDscript
This commit is contained in:
Rémi Verschelde 2017-01-02 13:43:13 +01:00 committed by GitHub
commit 17bb7e1c7e
2 changed files with 7 additions and 0 deletions

View file

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

View file

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