Moved a mesher vertex count check lower. This fixes missing meshes when none of the mesh data resources are fully in a chunk.

This commit is contained in:
Relintai 2021-08-07 15:14:50 +02:00
parent 8362eaf58e
commit e5c860e578

View File

@ -153,14 +153,6 @@ void TerraPropJob::phase_prop() {
} }
} }
if (get_prop_mesher()->get_vertex_count() == 0) {
reset_stages();
set_complete(true); //So threadpool knows it's done
next_job();
return;
}
if (should_return()) { if (should_return()) {
return; return;
} }
@ -210,6 +202,14 @@ void TerraPropJob::phase_prop() {
} }
} }
if (get_prop_mesher()->get_vertex_count() == 0) {
reset_stages();
set_complete(true); //So threadpool knows it's done
next_job();
return;
}
#endif #endif
reset_stages(); reset_stages();