diff --git a/world/default/voxel_job.cpp b/world/default/voxel_job.cpp index c55a7d3..611b46b 100644 --- a/world/default/voxel_job.cpp +++ b/world/default/voxel_job.cpp @@ -31,10 +31,13 @@ void VoxelJob::set_chunk(const Ref &chunk) { } void VoxelJob::chunk_exit_tree() { + _in_tree = false; if (get_complete()) { _chunk.unref(); + } else { + set_cancelled(true); } }