fix dirtying transform saved status by properly cloning transform object

pull/255/head
azivner 2018-11-13 19:16:21 +07:00
parent a065a610c1
commit 1ce26ed704
1 changed files with 2 additions and 1 deletions

@ -209,7 +209,8 @@ function saveCurrentTransform() {
const newTransform = pzInstance.getTransform();
if (JSON.stringify(newTransform) !== JSON.stringify(mapData.transform)) {
mapData.transform = newTransform;
// clone transform object
mapData.transform = JSON.parse(JSON.stringify(newTransform));
saveData();
}