refactor platform layout code, move stock record update into platform update

This commit is contained in:
Stewart Allen 2022-11-04 12:46:06 -04:00
commit 335a2706b4
6 changed files with 131 additions and 156 deletions

View file

@ -69,7 +69,7 @@ gapp.register("kiri.init", [], (root, exports) => {
}
platform.load_stl("/obj/cube.stl", function(vert) {
catalog.putFile("sample cube.stl", vert);
platform.compute_max_z();
platform.update_bounds();
space.view.home();
setTimeout(() => { api.space.save(true) },500);
then();