diff --git a/Changelog.md b/Changelog.md index 83ba9dc..6938580 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,6 @@ +# 0.10.5 +Fix for `_fromPoint3d` not a function. + # 0.10.4 Compatibility with Terrain Mapper 0.4.1. Update Polish translation. Thanks @Lioheart! Closes #184. Update Brazilian Portugese translation. Thanks @Kharmans! diff --git a/scripts/measurement/MovePenalty.js b/scripts/measurement/MovePenalty.js index e602b4d..7c46749 100644 --- a/scripts/measurement/MovePenalty.js +++ b/scripts/measurement/MovePenalty.js @@ -206,8 +206,6 @@ export class MovePenalty { const cutawayIxs = []; const terrainAPI = this.constructor.terrainAPI; for ( const region of this.pathRegions ) { - terrainAPI.ElevationHandler._fromPoint3d(start); - terrainAPI.ElevationHandler._fromPoint3d(end); const ixs = region.terrainmapper._cutawayIntersections(start, end); ixs.forEach(ix => ix.region = region); cutawayIxs.push(...ixs);