Remove debug graphics when pathfinding cache is being wiped
This commit is contained in:
@@ -53,6 +53,8 @@ export function wipePathfindingCache() {
|
|||||||
GridlessPathfinding.free(gridlessPathfinder);
|
GridlessPathfinding.free(gridlessPathfinder);
|
||||||
gridlessPathfinder = undefined;
|
gridlessPathfinder = undefined;
|
||||||
}
|
}
|
||||||
|
if (debugGraphics)
|
||||||
|
debugGraphics.removeChildren().forEach(c => c.destroy());
|
||||||
}
|
}
|
||||||
|
|
||||||
function getNode(pos, token, initialize=true) {
|
function getNode(pos, token, initialize=true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user