Fix errors with bindings

This commit is contained in:
Relintai 2020-10-02 12:24:00 +02:00
parent a25862527c
commit 3f04002453
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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");
}