diff --git a/Changelog.md b/Changelog.md index befed3e..93d9b72 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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. diff --git a/scripts/ruler.js b/scripts/ruler.js index 078e4db..18d53f7 100644 --- a/scripts/ruler.js +++ b/scripts/ruler.js @@ -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 });