Merge pull request #7363 from Elinvention/bone_attachment
Expose set_bone_name and get_bone_name to GDscript
This commit is contained in:
commit
17bb7e1c7e
2 changed files with 7 additions and 0 deletions
|
@ -137,3 +137,8 @@ BoneAttachment::BoneAttachment()
|
||||||
bound=false;
|
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);
|
||||||
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@ protected:
|
||||||
void _get_property_list( List<PropertyInfo>* p_list ) const;
|
void _get_property_list( List<PropertyInfo>* p_list ) const;
|
||||||
void _notification(int p_what);
|
void _notification(int p_what);
|
||||||
|
|
||||||
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
void set_bone_name(const String& p_name);
|
void set_bone_name(const String& p_name);
|
||||||
|
|
Loading…
Reference in a new issue