build_phase() in VoxelChunk should be thread safe.

This commit is contained in:
Relintai 2020-02-16 16:18:41 +01:00
parent 919080a1b5
commit 509d45a662

View File

@ -622,6 +622,9 @@ void VoxelChunk::_build_threaded(void *_userdata) {
}
bool VoxelChunk::build_phase() {
_THREAD_SAFE_METHOD_
set_build_phase_done(false);
return call("_build_phase", _current_build_phase);