Don't apply snapping to rulers received from other players (fixes #150)
This commit is contained in:
@@ -61,6 +61,9 @@ export function extendRuler() {
|
|||||||
|
|
||||||
measure(destination, options={}) {
|
measure(destination, options={}) {
|
||||||
if (this.isDragRuler) {
|
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);
|
return measure.call(this, destination, options);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user