diff --git a/modules/submap.js b/modules/submap.js index 92d308659..6c1611fe2 100644 --- a/modules/submap.js +++ b/modules/submap.js @@ -315,6 +315,8 @@ window.Submap = (function () { stage("Regenerating Zones."); addZones(); Names.getMapName(); + stage("Restoring Notes."); + notes = parentMap.notes; stage("Submap done."); WARN && console.warn(`TOTAL: ${rn((performance.now() - timeStart) / 1000, 2)}s`); diff --git a/modules/ui/submap.js b/modules/ui/submap.js index 15906e523..e08665ef8 100644 --- a/modules/ui/submap.js +++ b/modules/ui/submap.js @@ -141,16 +141,16 @@ window.UISubmap = (function () { async function startResample(options) { // Do model changes with Submap.resample then do view changes if needed. - undraw(); resetZoom(0); let oldstate = { grid: deepCopy(grid), pack: deepCopy(pack), + notes: deepCopy(notes), seed, graphWidth, graphHeight }; - + undraw(); try { const oldScale = scale; await Submap.resample(oldstate, options);