Don't apply snapping to rulers received from other players (fixes #150)

This commit is contained in:
Manuel Vögele
2022-02-09 10:41:01 +01:00
parent fb3665d758
commit 443cfd4317
+3
View File
@@ -61,6 +61,9 @@ export function extendRuler() {
measure(destination, options={}) {
if (this.isDragRuler) {
// If this is the ruler of a remote user take the waypoints as they were transmitted and don't apply any additional snapping to them
if (this.user !== game.user)
options.snap = false;
return measure.call(this, destination, options);
}
else {