Until serializable, don't record history on translation
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user