Advertisement
Guest User

Untitled

a guest
May 24th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.98 KB | None | 0 0
  1. diff --git a/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs b/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
  2. index bb0795bb..41611528 100644
  3. --- a/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
  4. +++ b/Assets/AstarPathfindingProject/Generators/RecastGenerator.cs
  5. @@ -463,7 +463,7 @@ namespace Pathfinding {
  6.             AstarProfiler.EndProfile("UpdateAreaInit");
  7.         }
  8.  
  9. -       void IUpdatableGraph.UpdateArea (GraphUpdateObject guo) {
  10. +       void IUpdatableGraph.UpdateArea (GraphUpdateObject guo, int threadIndex=0) {
  11.             // Figure out which tiles are affected
  12.             var affectedTiles = GetTouchingTiles(guo.bounds);
  13.  
  14. @@ -488,7 +488,7 @@ namespace Pathfinding {
  15.             // Build the new tiles
  16.             for (int x = affectedTiles.xmin; x <= affectedTiles.xmax; x++) {
  17.                 for (int z = affectedTiles.ymin; z <= affectedTiles.ymax; z++) {
  18. -                   stagingTiles.Add(BuildTileMesh(vox, x, z));
  19. +                   stagingTiles.Add(BuildTileMesh(vox, x, z, threadIndex));
  20.                 }
  21.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement