Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs b/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
- index bb0795bb..41611528 100644
- --- a/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
- +++ b/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
- @@ -463,7 +463,7 @@ namespace Pathfinding {
- AstarProfiler.EndProfile("UpdateAreaInit");
- }
- - void IUpdatableGraph.UpdateArea (GraphUpdateObject guo) {
- + void IUpdatableGraph.UpdateArea (GraphUpdateObject guo, int threadIndex=0) {
- // Figure out which tiles are affected
- var affectedTiles = GetTouchingTiles(guo.bounds);
- @@ -488,7 +488,7 @@ namespace Pathfinding {
- // Build the new tiles
- for (int x = affectedTiles.xmin; x <= affectedTiles.xmax; x++) {
- for (int z = affectedTiles.ymin; z <= affectedTiles.ymax; z++) {
- - stagingTiles.Add(BuildTileMesh(vox, x, z));
- + stagingTiles.Add(BuildTileMesh(vox, x, z, threadIndex));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement