From 698f6083ea537374740998b4fd8629e6a68e4fc6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 18 Jul 2020 14:19:13 +0200 Subject: [PATCH] Add MESH_DATA_RESOURCE_PRESENT around a piece of code. --- world/default/voxel_chunk_default.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/world/default/voxel_chunk_default.cpp b/world/default/voxel_chunk_default.cpp index 532fd4d..68783a7 100644 --- a/world/default/voxel_chunk_default.cpp +++ b/world/default/voxel_chunk_default.cpp @@ -1694,6 +1694,7 @@ void VoxelChunkDefault::_build_phase_physics_process(int phase) { clear_colliders(); +#ifdef MESH_DATA_RESOURCE_PRESENT for (int i = 0; i < get_mesh_data_resource_count(); ++i) { Ref mdr = get_mesh_data_resource(i); @@ -1729,6 +1730,7 @@ void VoxelChunkDefault::_build_phase_physics_process(int phase) { add_collider(transform, shape, shape->get_rid(), body); } } +#endif #if TOOLS_ENABLED if (SceneTree::get_singleton()->is_debugging_collisions_hint() && get_collider_count() > 0) {