mirror of
https://github.com/Relintai/terraman.git
synced 2025-05-01 22:07:59 +02:00
Fix crash when lighting is enabled, and the liquid mesher is null.
This commit is contained in:
parent
07788b6e8d
commit
0043df1c1d
@ -203,6 +203,7 @@ void TerraTerrarinJob::phase_terrarin_mesh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (should_do()) {
|
if (should_do()) {
|
||||||
|
if (_liquid_mesher.is_valid()) {
|
||||||
_liquid_mesher->bake_colors(_chunk);
|
_liquid_mesher->bake_colors(_chunk);
|
||||||
|
|
||||||
if (should_return()) {
|
if (should_return()) {
|
||||||
@ -210,6 +211,7 @@ void TerraTerrarinJob::phase_terrarin_mesh() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (_mesher->get_vertex_count() == 0 && (!_liquid_mesher.is_valid() || _liquid_mesher->get_vertex_count() == 0)) {
|
if (_mesher->get_vertex_count() == 0 && (!_liquid_mesher.is_valid() || _liquid_mesher->get_vertex_count() == 0)) {
|
||||||
reset_stages();
|
reset_stages();
|
||||||
|
Loading…
Reference in New Issue
Block a user