Small cleanups.

This commit is contained in:
Relintai 2020-10-06 12:29:16 +02:00
parent 8c06a778f2
commit 989e82b332
3 changed files with 1 additions and 31 deletions

View File

@ -320,9 +320,7 @@ void VoxelPropJob::phase_prop() {
}
}
//next_phase();
return;
//next_phase()
#endif
next_job();

View File

@ -252,27 +252,6 @@ void VoxelTerrarinJob::phase_physics_process() {
void VoxelTerrarinJob::phase_terrarin_mesh() {
Ref<VoxelChunkDefault> chunk = _chunk;
/*
if (should_do()) {
for (int i = 0; i < _meshers.size(); ++i) {
Ref<VoxelMesher> mesher = _meshers.get(i);
ERR_CONTINUE(!mesher.is_valid());
mesher->set_library(_chunk->get_library());
}
for (int i = 0; i < _liquid_meshers.size(); ++i) {
Ref<VoxelMesher> mesher = _liquid_meshers.get(i);
ERR_CONTINUE(!mesher.is_valid());
mesher->set_library(_chunk->get_library());
}
if (should_return())
return;
}*/
if ((chunk->get_build_flags() & VoxelChunkDefault::BUILD_FLAG_USE_LIGHTING) != 0) {
int starti = 0;
@ -597,12 +576,6 @@ void VoxelTerrarinJob::phase_finalize() {
next_job();
}
void VoxelTerrarinJob::phase_finalize_physics_process() {
// add physics meshes
next_job();
}
void VoxelTerrarinJob::_execute_phase() {
ERR_FAIL_COND(!_chunk.is_valid());

View File

@ -51,7 +51,6 @@ public:
void phase_physics_proces();
void phase_terrarin_mesh();
void phase_finalize();
void phase_finalize_physics_process();
void phase_physics_process();
void _execute_phase();