From 3f04002453160d898308d9b6cae6965d3d2a93d4 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 2 Oct 2020 12:24:00 +0200 Subject: [PATCH] Fix errors with bindings --- world/default/voxel_chunk_default.cpp | 2 +- world/jobs/voxel_prop_job.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/world/default/voxel_chunk_default.cpp b/world/default/voxel_chunk_default.cpp index efa9dcd..715a274 100644 --- a/world/default/voxel_chunk_default.cpp +++ b/world/default/voxel_chunk_default.cpp @@ -2197,7 +2197,7 @@ void VoxelChunkDefault::_bind_methods() { ClassDB::bind_method(D_METHOD("_world_light_added", "light"), &VoxelChunkDefault::_world_light_added); ClassDB::bind_method(D_METHOD("_world_light_removed", "light"), &VoxelChunkDefault::_world_light_removed); - ClassDB::bind_method(D_METHOD("get_job"), &VoxelChunkDefault::get_job); + //ClassDB::bind_method(D_METHOD("get_job"), &VoxelChunkDefault::get_job); BIND_CONSTANT(BUILD_PHASE_DONE); BIND_CONSTANT(BUILD_PHASE_SETUP); diff --git a/world/jobs/voxel_prop_job.cpp b/world/jobs/voxel_prop_job.cpp index 4176e13..42898d1 100644 --- a/world/jobs/voxel_prop_job.cpp +++ b/world/jobs/voxel_prop_job.cpp @@ -287,7 +287,7 @@ VoxelPropJob::~VoxelPropJob() { } void VoxelPropJob::_bind_methods() { - ClassDB::bind_method(D_METHOD("get_prop_mesher"), &VoxelChunk::get_prop_mesher); - ClassDB::bind_method(D_METHOD("set_prop_mesher", "mesher"), &VoxelChunk::set_prop_mesher); + ClassDB::bind_method(D_METHOD("get_prop_mesher"), &VoxelPropJob::get_prop_mesher); + ClassDB::bind_method(D_METHOD("set_prop_mesher", "mesher"), &VoxelPropJob::set_prop_mesher); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "prop_mesher", PROPERTY_HINT_RESOURCE_TYPE, "VoxelMesher", 0), "set_prop_mesher", "get_prop_mesher"); }