Fix a multithreading related crash.

This commit is contained in:
Relintai 2020-03-30 23:15:23 +02:00
parent f26fe74fc4
commit 3969e0ba5f

View File

@ -40,9 +40,9 @@ _FORCE_INLINE_ void VoxelChunkDefault::set_active_build_phase_type(const VoxelCh
_active_build_phase_type = value; _active_build_phase_type = value;
if (_active_build_phase_type == VoxelChunkDefault::BUILD_PHASE_TYPE_PHYSICS_PROCESS) { if (_active_build_phase_type == VoxelChunkDefault::BUILD_PHASE_TYPE_PHYSICS_PROCESS) {
set_physics_process_internal(true); call_deferred("set_physics_process_internal", true);
} else { } else {
set_physics_process_internal(false); call_deferred("set_physics_process_internal", false);
} }
} }