From 3969e0ba5f64761c893b50103c7efa3a10f06cac Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 30 Mar 2020 23:15:23 +0200 Subject: [PATCH] Fix a multithreading related crash. --- world/voxel_chunk_default.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world/voxel_chunk_default.cpp b/world/voxel_chunk_default.cpp index f292cb4..6600606 100644 --- a/world/voxel_chunk_default.cpp +++ b/world/voxel_chunk_default.cpp @@ -40,9 +40,9 @@ _FORCE_INLINE_ void VoxelChunkDefault::set_active_build_phase_type(const VoxelCh _active_build_phase_type = value; if (_active_build_phase_type == VoxelChunkDefault::BUILD_PHASE_TYPE_PHYSICS_PROCESS) { - set_physics_process_internal(true); + call_deferred("set_physics_process_internal", true); } else { - set_physics_process_internal(false); + call_deferred("set_physics_process_internal", false); } }