SHARE
TWEET

Untitled

a guest Sep 1st, 2017 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From e9b687dcf6d9043c3725733b6ad2052bfd929b73 Mon Sep 17 00:00:00 2001
  2. From: Aron Granberg <aron.granberg@gmail.com>
  3. Date: Thu, 1 Dec 2016 11:50:16 +0100
  4. Subject: [PATCH 21/43] Fixed AstarData.AddGraph would fill *all* empty slots
  5.  in the graph array with the graph instead of just the first.
  6.  
  7. ---
  8. Assets/AstarPathfindingProject/Core/AstarData.cs | 1 +
  9.  Assets/AstarPathfindingProject/changelog.cs      | 1 +
  10.  2 files changed, 2 insertions(+)
  11.  
  12. diff --git a/Assets/AstarPathfindingProject/Core/AstarData.cs b/Assets/AstarPathfindingProject/Core/AstarData.cs
  13. index a767b87e..d4079e64 100644
  14. --- a/Assets/AstarPathfindingProject/Core/AstarData.cs
  15. +++ b/Assets/AstarPathfindingProject/Core/AstarData.cs
  16. @@ -513,6 +513,7 @@ namespace Pathfinding {
  17.                     graphs[i] = graph;
  18.                     graph.graphIndex = (uint)i;
  19.                     foundEmpty = true;
  20. +                   break;
  21.                 }
  22.             }
  23.  
  24. diff --git a/Assets/AstarPathfindingProject/changelog.cs b/Assets/AstarPathfindingProject/changelog.cs
  25. index 9e4af4a4..6d9fd358 100644
  26. --- a/Assets/AstarPathfindingProject/changelog.cs
  27. +++ b/Assets/AstarPathfindingProject/changelog.cs
  28. @@ -5,6 +5,7 @@
  29.     - Various other small fixes in the AstarDebugger class.
  30.     - Fixed division by zero when generating a recast graph and the cell size was much larger than the bounds of the graph.
  31.     - Fixed DynamicGridObstacle getting caught in an infinite loop if there was be no AstarPath component in the scene when it was created. Thanks MeiChen for finding the bug.
  32. +   - Fixed AstarData.AddGraph would fill *all* empty slots in the graph array with the graph instead of just the first. Thanks bitwise for finding the bug.
  33.     - Fixed GraphUpdateScene causing 'The Grid Graph is not scanned, cannot update area' to be logged when exiting play mode.
  34.     - Fixed navmesh and recast graphs would unnecessarily be serialized by Unity which would slow down the inspector slightly.
  35.     - Fixed RVO threads would sometimes not be terminated which could lead to memory leaks if switching scenes a lot.
  36. --
  37. 2.14.1
RAW Paste Data
Top