From 58946096a6b566a5494177d0d8ba669aa8722203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sat, 12 Feb 2022 18:25:50 +0100 Subject: [PATCH 1/2] Remove debugging output --- src/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.js b/src/main.js index 125196c..ab5d79f 100644 --- a/src/main.js +++ b/src/main.js @@ -97,7 +97,6 @@ async function tokenLayerUndoHistory(wrapped) { function onEntityLeftDragStart(wrapped, event) { wrapped(event); - console.warn("start", Date.now()); const isToken = this instanceof Token; const ruler = canvas.controls.ruler ruler.draggedEntity = this; @@ -128,7 +127,6 @@ function onEntityLeftDragMove(wrapped, event) { function onEntityDragLeftDrop(event) { const ruler = canvas.controls.ruler - console.warn("stop", ruler._state, Date.now()); if (!ruler.isDragRuler) { ruler.draggedEntity = undefined; return false From ad3fdf4d1814e5bf616bae9c03e7f161f13e2780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sat, 12 Feb 2022 18:28:29 +0100 Subject: [PATCH 2/2] Release v1.11.5 --- CHANGELOG.md | 5 +++++ module.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index add1184..d634696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.11.5 +### Bugfixes +- Fixed a bug that was causing Drag Ruler to spam useless warnings into the console (this was a regression introduced in 1.11.4) + + ## 1.11.4 ### Bugfixes - When changing the measurement mode via a keybinding (toggle snaping or toggle pathfinding) the updated ruler will now be sent to other players immediately diff --git a/module.json b/module.json index be3d4d0..c686977 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "drag-ruler", "title": "Drag Ruler", "description": "When dragging a token displays a ruler showing how far you've moved that token.", - "version": "1.11.4", + "version": "1.11.5", "minimumCoreVersion" : "9.245", "compatibleCoreVersion" : "9", "authors": [ @@ -65,7 +65,7 @@ ], "socket": true, "url": "https://github.com/manuelVo/foundryvtt-drag-ruler", - "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.11.4.zip", + "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.11.5.zip", "manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json", "readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md", "changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",