mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-14 10:17:20 +01:00
Only build liquid colliders inside the editor.
This commit is contained in:
parent
23e5f1cedf
commit
5235641122
@ -1174,12 +1174,14 @@ void VoxelChunkDefault::_build_phase(int phase) {
|
||||
temp_arr_collider.append_array(mesher->build_collider());
|
||||
}
|
||||
|
||||
for (int i = 0; i < _liquid_meshers.size(); ++i) {
|
||||
Ref<VoxelMesher> mesher = _liquid_meshers.get(i);
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
for (int i = 0; i < _liquid_meshers.size(); ++i) {
|
||||
Ref<VoxelMesher> mesher = _liquid_meshers.get(i);
|
||||
|
||||
ERR_CONTINUE(!mesher.is_valid());
|
||||
ERR_CONTINUE(!mesher.is_valid());
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user