diff --git a/world/jobs/voxel_light_job.cpp b/world/jobs/voxel_light_job.cpp index 6d2f7b5..768f8c8 100644 --- a/world/jobs/voxel_light_job.cpp +++ b/world/jobs/voxel_light_job.cpp @@ -36,6 +36,7 @@ void VoxelLightJob::phase_light() { bool gr = (chunk->get_build_flags() & VoxelChunkDefault::BUILD_FLAG_AUTO_GENERATE_RAO) != 0; if (!gr && (chunk->get_build_flags() & VoxelChunkDefault::BUILD_FLAG_USE_LIGHTING) == 0) { + next_phase(); return; } @@ -63,6 +64,7 @@ void VoxelLightJob::phase_light() { } reset_stages(); + next_phase(); } void VoxelLightJob::_execute() { diff --git a/world/jobs/voxel_prop_job.cpp b/world/jobs/voxel_prop_job.cpp index 42898d1..128167f 100644 --- a/world/jobs/voxel_prop_job.cpp +++ b/world/jobs/voxel_prop_job.cpp @@ -55,13 +55,13 @@ void VoxelPropJob::phase_prop() { Ref chunk = _chunk; if (!get_prop_mesher().is_valid()) { - //next_phase(); + next_phase(); return; } if (should_do()) { if (chunk->get_mesh_data_resource_count() == 0) { - //next_phase(); + next_phase(); return; } @@ -74,7 +74,7 @@ void VoxelPropJob::phase_prop() { if (get_prop_mesher()->get_vertex_count() == 0) { reset_stages(); - //next_phase(); + next_phase(); return; } @@ -262,7 +262,7 @@ void VoxelPropJob::phase_prop() { } } - //next_phase(); + next_phase(); return; #endif diff --git a/world/jobs/voxel_terrarin_job.cpp b/world/jobs/voxel_terrarin_job.cpp index 932dad7..1b13240 100644 --- a/world/jobs/voxel_terrarin_job.cpp +++ b/world/jobs/voxel_terrarin_job.cpp @@ -92,6 +92,8 @@ void VoxelTerrarinJob::phase_setup() { mesher->set_library(_chunk->get_library()); mesher->reset(); } + + next_phase(); } void VoxelTerrarinJob::phase_terrarin_mesh_setup() { @@ -140,12 +142,15 @@ void VoxelTerrarinJob::phase_terrarin_mesh_setup() { if (has_meta("tms_lm")) { remove_meta("tms_lm"); } + + next_phase(); } void VoxelTerrarinJob::phase_collider() { Ref chunk = _chunk; if ((chunk->get_build_flags() & VoxelChunkDefault::BUILD_FLAG_CREATE_COLLIDER) == 0) { + next_phase(); return; } @@ -199,11 +204,11 @@ void VoxelTerrarinJob::phase_collider() { } if (temp_arr_collider.size() == 0 && temp_arr_collider_liquid.size() == 0) { + next_phase(); return; } - //set_active_build_phase_type(BUILD_PHASE_TYPE_PHYSICS_PROCESS); - //return; + set_build_phase_type(BUILD_PHASE_TYPE_PHYSICS_PROCESS); } void VoxelTerrarinJob::phase_terrarin_mesh() { @@ -341,6 +346,7 @@ void VoxelTerrarinJob::phase_terrarin_mesh() { } reset_stages(); + next_phase(); return; } @@ -540,6 +546,7 @@ void VoxelTerrarinJob::phase_terrarin_mesh() { } reset_stages(); + next_phase(); } void VoxelTerrarinJob::phase_finalize() {