From 79538b439236c63fc7b2573854d8ccd25b7c8abe Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 2 Jun 2023 12:21:16 +0200 Subject: [PATCH] Fix more binding inconsistencies. --- .../skeleton_2d/resources/skeleton_modification_stack_2d.cpp | 2 +- modules/terraman_2d/world/terrain_2d_world.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/skeleton_2d/resources/skeleton_modification_stack_2d.cpp b/modules/skeleton_2d/resources/skeleton_modification_stack_2d.cpp index 366d47219..7370ee5a6 100644 --- a/modules/skeleton_2d/resources/skeleton_modification_stack_2d.cpp +++ b/modules/skeleton_2d/resources/skeleton_modification_stack_2d.cpp @@ -265,7 +265,7 @@ void SkeletonModificationStack2D::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL, "enabled"), "set_enabled", "get_enabled"); ADD_PROPERTY(PropertyInfo(Variant::REAL, "strength", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_strength", "get_strength"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "modification_count", PROPERTY_HINT_RANGE, "0,100,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED, "Modifications,modifications/"), "set_modification_count", "get_modification_count"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "modification_count", PROPERTY_HINT_RANGE, "0,100,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED), "set_modification_count", "get_modification_count"); } SkeletonModificationStack2D::SkeletonModificationStack2D() { diff --git a/modules/terraman_2d/world/terrain_2d_world.cpp b/modules/terraman_2d/world/terrain_2d_world.cpp index 03d554f98..d87b9d108 100644 --- a/modules/terraman_2d/world/terrain_2d_world.cpp +++ b/modules/terraman_2d/world/terrain_2d_world.cpp @@ -1199,7 +1199,7 @@ void Terrain2DWorld::_bind_methods() { ClassDB::bind_method(D_METHOD("get_player"), &Terrain2DWorld::get_player); ClassDB::bind_method(D_METHOD("set_player", "player"), &Terrain2DWorld::set_player_bind); - ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "player", PROPERTY_HINT_RESOURCE_TYPE, "node2D", 0), "set_player", "get_player"); + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "player", PROPERTY_HINT_RESOURCE_TYPE, "Node2D", 0), "set_player", "get_player"); ADD_GROUP("Mesh Transforms", "mesh_transform"); ClassDB::bind_method(D_METHOD("mesh_transform_terrain_get"), &Terrain2DWorld::mesh_transform_terrain_get);