allow modules control over seed objects and controls visibility

This commit is contained in:
Stewart Allen 2020-03-28 16:06:22 -04:00
commit fd2b369849
2 changed files with 10 additions and 8 deletions

View file

@ -58,7 +58,7 @@ var gs_kiri_init = exports;
// skip sample object load in onshape (or any script postload)
if (!SDB[SEED]) {
SDB[SEED] = new Date().getTime();
if (!SETUP.s) {
if (!SETUP.s && API.feature.seed) {
platform.load_stl("/obj/cube.stl", function(vert) {
CATALOG.putFile("sample cube.stl", vert);
platform.compute_max_z();
@ -1679,7 +1679,7 @@ var gs_kiri_init = exports;
API.view.set(VIEWS.ARRANGE);
// add ability to override
API.show.controls(true);
API.show.controls(API.feature.controls);
// set initial layer slider size
API.dialog.update();