fix project loading

This commit is contained in:
Val Erastov 2018-09-27 20:23:04 -07:00
parent 5135d6bce8
commit fa672d92bb
2 changed files with 5 additions and 2 deletions

View file

@ -18,6 +18,9 @@ export function activate({streams, services}) {
console.log("project loaded, took: " + ((onLoadTime - startTime) / 1000).toFixed(2) + ' sec');
}
},
declareAppReady: () => streams.lifecycle.appReady.value = true
declareAppReady: () => {
streams.lifecycle.appReady.value = true
services.lifecycle.loadProjectRequest();
}
}
}

View file

@ -88,7 +88,7 @@ export function activate(ctx) {
services.appTabs.show(face.id, 'Sketch ' + face.id, 'sketcher.html#' + sketchURL);
}
streams.craft.modifications.attach(updateAllSketches);
streams.craft.models.attach(updateAllSketches);
services.sketcher = {
sketchFace, sketchFace2D, updateAllSketches, getAllSketches, readSketch, inPlaceEditor