From ba1376e821073bf22da8d92d3bdd8f8529043067 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 5 Feb 2018 15:57:10 +1300 Subject: [PATCH] Until serializable, don't record history on translation --- sources/scripts/dotgrid.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sources/scripts/dotgrid.js b/sources/scripts/dotgrid.js index 1079572..81b3001 100644 --- a/sources/scripts/dotgrid.js +++ b/sources/scripts/dotgrid.js @@ -288,8 +288,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca if(segment.to && segment.to.is_equal(dotgrid.translation.from)){ segment.to = new Pos(-dotgrid.translation.to.x,dotgrid.translation.to.y)} if(segment.end && segment.end.is_equal(dotgrid.translation.from)){ segment.end = new Pos(-dotgrid.translation.to.x,dotgrid.translation.to.y)} } - - dotgrid.history.push(dotgrid.segments); + dotgrid.translation = null; dotgrid.reset();