mirror of
https://github.com/Relintai/voxelman.git
synced 2025-04-17 21:06:32 +02:00
Small cleanups.
This commit is contained in:
parent
8c06a778f2
commit
989e82b332
@ -320,9 +320,7 @@ void VoxelPropJob::phase_prop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//next_phase();
|
//next_phase()
|
||||||
|
|
||||||
return;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
next_job();
|
next_job();
|
||||||
|
@ -252,27 +252,6 @@ void VoxelTerrarinJob::phase_physics_process() {
|
|||||||
|
|
||||||
void VoxelTerrarinJob::phase_terrarin_mesh() {
|
void VoxelTerrarinJob::phase_terrarin_mesh() {
|
||||||
Ref<VoxelChunkDefault> chunk = _chunk;
|
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) {
|
if ((chunk->get_build_flags() & VoxelChunkDefault::BUILD_FLAG_USE_LIGHTING) != 0) {
|
||||||
int starti = 0;
|
int starti = 0;
|
||||||
@ -597,12 +576,6 @@ void VoxelTerrarinJob::phase_finalize() {
|
|||||||
next_job();
|
next_job();
|
||||||
}
|
}
|
||||||
|
|
||||||
void VoxelTerrarinJob::phase_finalize_physics_process() {
|
|
||||||
// add physics meshes
|
|
||||||
|
|
||||||
next_job();
|
|
||||||
}
|
|
||||||
|
|
||||||
void VoxelTerrarinJob::_execute_phase() {
|
void VoxelTerrarinJob::_execute_phase() {
|
||||||
ERR_FAIL_COND(!_chunk.is_valid());
|
ERR_FAIL_COND(!_chunk.is_valid());
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@ public:
|
|||||||
void phase_physics_proces();
|
void phase_physics_proces();
|
||||||
void phase_terrarin_mesh();
|
void phase_terrarin_mesh();
|
||||||
void phase_finalize();
|
void phase_finalize();
|
||||||
void phase_finalize_physics_process();
|
|
||||||
void phase_physics_process();
|
void phase_physics_process();
|
||||||
|
|
||||||
void _execute_phase();
|
void _execute_phase();
|
||||||
|
Loading…
Reference in New Issue
Block a user