mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-27 19:06:16 +01:00
checkpoint on save
This commit is contained in:
parent
db508615a6
commit
7833d4b827
1 changed files with 1 additions and 1 deletions
|
|
@ -71,9 +71,9 @@ TCAD.App2D = function() {
|
|||
|
||||
this.registerAction('save', "Save", function () {
|
||||
var sketchData = app.viewer.io.serializeSketch();
|
||||
console.log(sketchData);
|
||||
var sketchId = app.getSketchId();
|
||||
localStorage.setItem(app.getSketchId(), sketchData);
|
||||
app.viewer.historyManager.checkpoint();
|
||||
});
|
||||
|
||||
this.registerAction('coincident', "Coincident", function () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue