Skip to content

Commit

Permalink
Fix bug - reactivate the same waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Aug 31, 2020
1 parent af749b1 commit 0cabac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/waypoint-system.js
Expand Up @@ -330,6 +330,7 @@ export class WaypointSystem {
const waypoint = this.ready.find(c => c.el.object3D.name === waypointName);
if (waypoint) {
this.moveToWaypoint(waypoint, this.previousWaypointHash === null);
window.location.hash = ""; // Reset so you can re-activate the same waypoint
}
this.previousWaypointHash = window.location.hash;
}
Expand Down

0 comments on commit 0cabac6

Please sign in to comment.