From 29298958e71a4c02bcdbe6d42c8f5704c9ba85df Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Fri, 10 May 2019 00:57:09 +0100 Subject: [PATCH] Fix mistake in previous commit about missing binding argument --- terrain/voxel_lod_terrain.cpp | 2 +- terrain/voxel_terrain.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/terrain/voxel_lod_terrain.cpp b/terrain/voxel_lod_terrain.cpp index ea037ce..9b4622f 100644 --- a/terrain/voxel_lod_terrain.cpp +++ b/terrain/voxel_lod_terrain.cpp @@ -800,7 +800,7 @@ void VoxelLodTerrain::_bind_methods() { ClassDB::bind_method(D_METHOD("get_block_region_extent"), &VoxelLodTerrain::get_block_region_extent); ClassDB::bind_method(D_METHOD("get_block_info", "block_pos", "lod"), &VoxelLodTerrain::get_block_info); ClassDB::bind_method(D_METHOD("get_stats"), &VoxelLodTerrain::get_stats); - ClassDB::bind_method(D_METHOD("voxel_to_block_position"), &VoxelLodTerrain::voxel_to_block_position); + ClassDB::bind_method(D_METHOD("voxel_to_block_position", "lod_index"), &VoxelLodTerrain::voxel_to_block_position); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "provider", PROPERTY_HINT_RESOURCE_TYPE, "VoxelProvider"), "set_provider", "get_provider"); ADD_PROPERTY(PropertyInfo(Variant::INT, "view_distance"), "set_view_distance", "get_view_distance"); diff --git a/terrain/voxel_terrain.cpp b/terrain/voxel_terrain.cpp index 5f1caa1..b98b436 100644 --- a/terrain/voxel_terrain.cpp +++ b/terrain/voxel_terrain.cpp @@ -960,8 +960,8 @@ void VoxelTerrain::_bind_methods() { ClassDB::bind_method(D_METHOD("get_storage"), &VoxelTerrain::get_map); - ClassDB::bind_method(D_METHOD("voxel_to_block", "voxel_pos", "lod_index"), &VoxelTerrain::_voxel_to_block_binding); - ClassDB::bind_method(D_METHOD("block_to_voxel", "block_pos", "lod_index"), &VoxelTerrain::_block_to_voxel_binding); + ClassDB::bind_method(D_METHOD("voxel_to_block", "voxel_pos"), &VoxelTerrain::_voxel_to_block_binding); + ClassDB::bind_method(D_METHOD("block_to_voxel", "block_pos"), &VoxelTerrain::_block_to_voxel_binding); ClassDB::bind_method(D_METHOD("make_voxel_dirty", "pos"), &VoxelTerrain::_make_voxel_dirty_binding); ClassDB::bind_method(D_METHOD("make_area_dirty", "aabb"), &VoxelTerrain::_make_area_dirty_binding);