This commit is contained in:
Devine Lu Linvega 2019-01-08 10:36:08 +12:00
parent 910e06c5ea
commit 56c9e21699

View File

@ -6,7 +6,7 @@ DOTGRID.Cursor = function () {
this.operation = null this.operation = null
this.translate = function (from = null, to = null, multi = false, copy = false, layer = false) { this.translate = function (from = null, to = null, multi = false, copy = false, layer = false) {
if ((from || to) && this.translation == null) { this.translation = { multi: multi, copy: copy, layer: layer }; } if ((from || to) && this.translation == null) { this.translation = { multi: multi, copy: copy, layer: layer } }
if (from) { this.translation.from = from } if (from) { this.translation.from = from }
if (to) { this.translation.to = to } if (to) { this.translation.to = to }