Skip to content

Commit

Permalink
Merge branch 'release/0.9.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Jun 1, 2024
2 parents f3d7e0a + 95e9493 commit 7326b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.9.3
Fix for speed color error.

# 0.9.2
Fix pathfinding.
Change the keybind for teleport to "F" (fast-forward) to avoid collision with arrow-key usage on the canvas. Switch to requiring "F" to be held when the user triggers the move to get teleport, to avoid weirdness with the drag still being active when using a separate trigger key.
Expand Down
4 changes: 2 additions & 2 deletions scripts/Ruler.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function _getMeasurementData(wrapper) {
B: s.ray.B
};
newObj.label = Boolean(s.label);
newObj.speed ??= newObj.speed.name;
if ( s.speed ) s.speed = s.speed.name;
return newObj;
});

Expand Down Expand Up @@ -133,7 +133,7 @@ function update(wrapper, data) {
// Reconstruct segments.
if ( myData._segments ) this.segments = myData._segments.map(s => {
s.ray = new Ray3d(s.ray.A, s.ray.B);
s.speed ??= SPEED.CATEGORIES.find(s => s.name === s.speed);
if ( s.speed ) s.speed = SPEED.CATEGORIES.find(s => s.name === s.speed);
return s;
});

Expand Down

0 comments on commit 7326b9e

Please sign in to comment.