refactor platform layout code, move stock record update into platform update
This commit is contained in:
parent
54b9889ffa
commit
335a2706b4
6 changed files with 131 additions and 156 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue