Skip to content

Commit

Permalink
Merge branch 'release/0.2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Jul 21, 2021
2 parents 8934f47 + e4a13b8 commit c788566
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.2.5
Correct "jumping token" issue where when the token is moved, it will appear to drift off the path and move twice.

For conceptual consistency, switch to projecting the origin point for the token so that the projected path goes from the token at a given height to the destination point. This was the intended approach, but the origin/destination got flipped in the projection code. May not result in a different outcome in most cases, but may be different for edge cases when measuring diagonals.

# 0.2.4
Minor update with additional checks on presence of elevation increment flag. Additional logging.

Expand Down
2 changes: 1 addition & 1 deletion scripts/ruler.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export async function elevationRulerAnimateToken(wrapped, token, ray, dx, dy, se
log(`Current token elevation is ${current_elevation}. Will be changed to ${end_elevation}.`);

// move the token first.
let res = wrapped(token, ray, dx, dy, segment_num);
let res = await wrapped(token, ray, dx, dy, segment_num);

if(current_elevation !== end_elevation) {
await token.document.update({ 'elevation': end_elevation });
Expand Down

0 comments on commit c788566

Please sign in to comment.