Proper bind parameters for body_instance.

This commit is contained in:
Relintai 2023-02-24 19:09:44 +01:00
parent b6e6d3226f
commit 806a083cc9

View File

@ -7569,9 +7569,9 @@ void Entity::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_character_skeleton"), &Entity::get_character_skeleton);
ClassDB::bind_method(D_METHOD("set_character_skeleton", "skeleton"), &Entity::set_character_skeleton);
ClassDB::bind_method(D_METHOD("body_instance"), &Entity::body_instance);
ClassDB::bind_method(D_METHOD("body_instance", "data", "model_index"), &Entity::body_instance);
ClassDB::bind_method(D_METHOD("body_on_changed"), &Entity::body_on_changed);
w
BIND_VMETHOD(MethodInfo("_body_changed"));
ADD_SIGNAL(MethodInfo("body_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));