From 806a083cc941f6d14a14989e33497d5e399db64f Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 24 Feb 2023 19:09:44 +0100 Subject: [PATCH] Proper bind parameters for body_instance. --- modules/entity_spell_system/entities/entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/entity_spell_system/entities/entity.cpp b/modules/entity_spell_system/entities/entity.cpp index c1c54c6c7..1f00dc4fa 100644 --- a/modules/entity_spell_system/entities/entity.cpp +++ b/modules/entity_spell_system/entities/entity.cpp @@ -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")));