diff --git a/web/app/3d/modeler-app.js b/web/app/3d/modeler-app.js index 2d747983..d8ff2457 100644 --- a/web/app/3d/modeler-app.js +++ b/web/app/3d/modeler-app.js @@ -19,6 +19,9 @@ require('../../css/app3d.less'); function App() { this.id = window.location.hash.substring(1); + if (!this.id) { + this.id = window.location.search.substring(1); + } if (!this.id) { this.id = "DEFAULT"; } @@ -367,6 +370,10 @@ App.prototype._refreshSketches = function() { } }; +App.prototype.findSketches = function(solid) { + return solid.polyFaces.filter(f => this.faceStorageKey(f.id) in localStorage).map(f => f.id); +}; + App.prototype.refreshSketchOnFace = function(sketchFace) { var faceStorageKey = this.faceStorageKey(sketchFace.id); var savedFace = localStorage.getItem(faceStorageKey);