Skip to content

Commit

Permalink
fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Dec 5, 2023
1 parent 451bb07 commit 674e45c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scenes/GenerateTerrain.gd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func start():

oTerrainMesh.mesh = oVoxelGen.complete_slx_mesh(arrayOfArrays)
print('Codetime: ' + str(OS.get_ticks_msec() - CODETIME_START) + 'ms')

yield(get_tree(),'idle_frame') # Important to solve race condition
emit_signal("terrain_finished_generating")

func loading_bar_start():
Expand Down

0 comments on commit 674e45c

Please sign in to comment.