mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-20 10:47:19 +01:00
Small cleanups.
This commit is contained in:
parent
8c06a778f2
commit
989e82b332
@ -320,9 +320,7 @@ void VoxelPropJob::phase_prop() {
|
||||
}
|
||||
}
|
||||
|
||||
//next_phase();
|
||||
|
||||
return;
|
||||
//next_phase()
|
||||
#endif
|
||||
|
||||
next_job();
|
||||
|
@ -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());
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user