Skip to content

Commit

Permalink
If no dragged entity is being transmitted, unset it (fixes #179)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelVo committed Mar 8, 2022
1 parent df4c515 commit 30bd3d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/ruler.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export function extendRuler() {
else
this.draggedEntity = canvas.templates.get(data.draggedEntity);
}
else {
this.draggedEntity = undefined;
}

super.update(data);
}
Expand Down

0 comments on commit 30bd3d3

Please sign in to comment.