mirror of
https://github.com/Relintai/voxelman.git
synced 2025-02-18 16:54:21 +01:00
Only build liquid colliders inside the editor.
This commit is contained in:
parent
23e5f1cedf
commit
5235641122
@ -1174,6 +1174,7 @@ void VoxelChunkDefault::_build_phase(int phase) {
|
|||||||
temp_arr_collider.append_array(mesher->build_collider());
|
temp_arr_collider.append_array(mesher->build_collider());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Engine::get_singleton()->is_editor_hint()) {
|
||||||
for (int i = 0; i < _liquid_meshers.size(); ++i) {
|
for (int i = 0; i < _liquid_meshers.size(); ++i) {
|
||||||
Ref<VoxelMesher> mesher = _liquid_meshers.get(i);
|
Ref<VoxelMesher> mesher = _liquid_meshers.get(i);
|
||||||
|
|
||||||
@ -1181,6 +1182,7 @@ void VoxelChunkDefault::_build_phase(int phase) {
|
|||||||
|
|
||||||
temp_arr_collider_liquid.append_array(mesher->build_collider());
|
temp_arr_collider_liquid.append_array(mesher->build_collider());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (temp_arr_collider.size() == 0 && temp_arr_collider_liquid.size() == 0) {
|
if (temp_arr_collider.size() == 0 && temp_arr_collider_liquid.size() == 0) {
|
||||||
next_phase();
|
next_phase();
|
||||||
|
Loading…
Reference in New Issue
Block a user